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