1 write to Name
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ModelExpression.cs (1)
27
Name
= name;
61 references to Name
Microsoft.AspNetCore.Mvc.Razor.Test (11)
RazorPageCreateModelExpressionTest.cs (11)
39
Assert.Empty(modelExpression.
Name
);
64
Assert.Empty(modelExpression.
Name
);
119
Assert.Equal(expectedName, modelExpression.
Name
);
143
Assert.Equal(expected, result.
Name
);
161
Assert.Equal(expected, result.
Name
);
179
Assert.Equal(expected, result.
Name
);
197
Assert.Equal(expected, result.
Name
);
216
Assert.Equal(expectedName, result.
Name
);
234
Assert.Equal(expectedName, result.
Name
);
252
Assert.Equal(expectedName, result.
Name
);
270
Assert.Equal(expectedName, result.
Name
);
Microsoft.AspNetCore.Mvc.TagHelpers (22)
InputTagHelper.cs (9)
133
/// valid with an empty <see cref="ModelExpression.
Name
"/>.
188
For.
Name
));
212
if (string.IsNullOrEmpty(For.
Name
) &&
237
For.
Name
,
330
var hiddenForCheckboxTag = Generator.GenerateHiddenForCheckbox(ViewContext, modelExplorer, For.
Name
);
369
For.
Name
,
389
For.
Name
,
434
For.
Name
,
468
return Generator.GenerateTextBox(ViewContext, modelExplorer, For.
Name
, value, Format, htmlAttributes);
LabelTagHelper.cs (1)
58
For.
Name
,
PartialTagHelper.cs (2)
205
if (For?.
Name
!= null)
207
newViewData.TemplateInfo.HtmlFieldPrefix = newViewData.TemplateInfo.GetFullHtmlFieldName(For.
Name
);
SelectTagHelper.cs (5)
68
/// valid with an empty <see cref="ModelExpression.
Name
"/>.
92
For.
Name
));
101
_currentValues = Generator.GetCurrentValues(ViewContext, For.ModelExplorer, For.
Name
, _allowMultiple);
135
if (string.IsNullOrEmpty(For.
Name
) &&
149
expression: For.
Name
,
TextAreaTagHelper.cs (3)
53
/// valid with an empty <see cref="ModelExpression.
Name
"/>.
73
if (string.IsNullOrEmpty(For.
Name
) &&
86
For.
Name
,
ValidationMessageTagHelper.cs (2)
63
if (string.IsNullOrEmpty(For.
Name
) &&
89
For.
Name
,
Microsoft.AspNetCore.Mvc.TagHelpers.Test (12)
InputTagHelperTest.cs (11)
870
tagHelper.For.
Name
,
1190
tagHelper.For.
Name
,
1199
tagHelper.For.
Name
))
1301
tagHelper.For.
Name
,
1467
tagHelper.For.
Name
,
1561
tagHelper.For.
Name
,
1679
tagHelper.For.
Name
,
1795
tagHelper.For.
Name
,
1864
tagHelper.For.
Name
,
1933
tagHelper.For.
Name
,
2027
tagHelper.For.
Name
,
ValidationMessageTagHelperTest.cs (1)
244
modelExpression.
Name
,
Microsoft.AspNetCore.Mvc.ViewFeatures (15)
HtmlHelperOfT.cs (15)
100
modelExpression.
Name
,
117
modelExpression.
Name
,
135
htmlFieldName ?? modelExpression.
Name
,
146
return GenerateDisplayName(modelExpression.ModelExplorer, modelExpression.
Name
);
159
return GenerateDisplayName(modelExpression.ModelExplorer, modelExpression.
Name
);
182
htmlFieldName ?? modelExpression.
Name
,
197
modelExpression.
Name
,
220
return GenerateLabel(modelExpression.ModelExplorer, modelExpression.
Name
, labelText, htmlAttributes);
232
var name = modelExpression.
Name
;
256
modelExpression.
Name
,
273
modelExpression.
Name
,
289
return GenerateTextArea(modelExpression.ModelExplorer, modelExpression.
Name
, rows, columns, htmlAttributes);
303
modelExpression.
Name
,
352
modelExpression.
Name
,
364
return GenerateValue(modelExpression.
Name
, modelExpression.Model, format, useViewData: false);
TagHelpersWebSite (1)
TagHelpers\DictionaryPrefixTestTagHelper.cs (1)
24
liTag.InnerHtml.Append(item.Value.
Name
);