18 writes to FormattedModelValue
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
DefaultDisplayTemplates.cs (1)
152htmlHelper.ViewData.TemplateInfo.FormattedModelValue =
DefaultEditorTemplates.cs (2)
134htmlHelper.ViewData.TemplateInfo.FormattedModelValue = 430htmlHelper.ViewData.TemplateInfo.FormattedModelValue =
TemplateBuilder.cs (1)
119viewData.TemplateInfo.FormattedModelValue = formattedModelValue;
TemplateInfo.cs (1)
33FormattedModelValue = original.FormattedModelValue;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (13)
DefaultDisplayTemplatesTest.cs (2)
219templateInfo.FormattedModelValue = "Formatted string"; 245templateInfo.FormattedModelValue = "Formatted string";
DefaultEditorTemplatesTest.cs (10)
457templateInfo.FormattedModelValue = "Formatted string"; 484templateInfo.FormattedModelValue = "Formatted string"; 508templateInfo.FormattedModelValue = "Formatted string"; 534templateInfo.FormattedModelValue = "Formatted string"; 586helper.ViewData.TemplateInfo.FormattedModelValue = "Formatted string"; 618helper.ViewData.TemplateInfo.FormattedModelValue = "Formatted string"; 661helper.ViewData.TemplateInfo.FormattedModelValue = "Formatted string"; 703helper.ViewData.TemplateInfo.FormattedModelValue = "Formatted string"; 746helper.ViewData.TemplateInfo.FormattedModelValue = "Formatted string"; 788helper.ViewData.TemplateInfo.FormattedModelValue = "Formatted string";
ViewDataOfTTest.cs (1)
83viewData.TemplateInfo.FormattedModelValue = null;
23 references to FormattedModelValue
Microsoft.AspNetCore.Mvc.ViewFeatures (15)
DefaultDisplayTemplates.cs (7)
150if (htmlHelper.ViewData.TemplateInfo.FormattedModelValue == htmlHelper.ViewData.Model) 164var linkedText = (htmlHelper.ViewData.TemplateInfo.FormattedModelValue == null) ? 166htmlHelper.ViewData.TemplateInfo.FormattedModelValue.ToString(); 183return new HtmlString(htmlHelper.ViewData.TemplateInfo.FormattedModelValue.ToString()); 268var value = htmlHelper.ViewData.TemplateInfo.FormattedModelValue; 280var linkedText = (htmlHelper.ViewData.TemplateInfo.FormattedModelValue == null) ? 282htmlHelper.ViewData.TemplateInfo.FormattedModelValue.ToString();
DefaultEditorTemplates.cs (6)
132if (htmlHelper.ViewData.TemplateInfo.FormattedModelValue == htmlHelper.ViewData.Model) 222value: htmlHelper.ViewContext.ViewData.TemplateInfo.FormattedModelValue.ToString(), 317value = htmlHelper.ViewData.TemplateInfo.FormattedModelValue; 411return GenerateTextBox(htmlHelper, htmlHelper.ViewData.TemplateInfo.FormattedModelValue, htmlAttributes); 423if (htmlHelper.ViewData.TemplateInfo.FormattedModelValue != value && metadata.HasNonDefaultEditFormat) 437return GenerateTextBox(htmlHelper, inputType, htmlHelper.ViewData.TemplateInfo.FormattedModelValue);
TemplateInfo.cs (2)
33FormattedModelValue = original.FormattedModelValue; 57/// Will never return <c>null</c> for consistency with <see cref="FormattedModelValue"/>.
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (8)
Rendering\HtmlHelperDisplayExtensionsTest.cs (4)
135.Callback((ViewContext v) => v.Writer.WriteAsync(v.ViewData.TemplateInfo.FormattedModelValue.ToString())) 161.Callback((ViewContext v) => v.Writer.WriteAsync(v.ViewData.TemplateInfo.FormattedModelValue.ToString())) 321.Callback((ViewContext v) => v.Writer.WriteAsync(v.ViewData.TemplateInfo.FormattedModelValue.ToString())) 362.Callback((ViewContext v) => v.Writer.WriteAsync(v.ViewData.TemplateInfo.FormattedModelValue.ToString()))
Rendering\HtmlHelperEditorExtensionsTest.cs (2)
19.Callback((ViewContext v) => v.Writer.WriteAsync(v.ViewData.TemplateInfo.FormattedModelValue.ToString())) 45.Callback((ViewContext v) => v.Writer.WriteAsync(v.ViewData.TemplateInfo.FormattedModelValue.ToString()))
ViewDataOfTTest.cs (2)
69Assert.Equal(string.Empty, viewData.TemplateInfo.FormattedModelValue); 87Assert.Equal(string.Empty, viewData.TemplateInfo.FormattedModelValue);