18 writes to FormattedModelValue
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
DefaultDisplayTemplates.cs (1)
152
htmlHelper.ViewData.TemplateInfo.
FormattedModelValue
=
DefaultEditorTemplates.cs (2)
134
htmlHelper.ViewData.TemplateInfo.
FormattedModelValue
=
430
htmlHelper.ViewData.TemplateInfo.
FormattedModelValue
=
TemplateBuilder.cs (1)
119
viewData.TemplateInfo.
FormattedModelValue
= formattedModelValue;
TemplateInfo.cs (1)
33
FormattedModelValue
= original.FormattedModelValue;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (13)
DefaultDisplayTemplatesTest.cs (2)
219
templateInfo.
FormattedModelValue
= "Formatted string";
245
templateInfo.
FormattedModelValue
= "Formatted string";
DefaultEditorTemplatesTest.cs (10)
457
templateInfo.
FormattedModelValue
= "Formatted string";
484
templateInfo.
FormattedModelValue
= "Formatted string";
508
templateInfo.
FormattedModelValue
= "Formatted string";
534
templateInfo.
FormattedModelValue
= "Formatted string";
586
helper.ViewData.TemplateInfo.
FormattedModelValue
= "Formatted string";
618
helper.ViewData.TemplateInfo.
FormattedModelValue
= "Formatted string";
661
helper.ViewData.TemplateInfo.
FormattedModelValue
= "Formatted string";
703
helper.ViewData.TemplateInfo.
FormattedModelValue
= "Formatted string";
746
helper.ViewData.TemplateInfo.
FormattedModelValue
= "Formatted string";
788
helper.ViewData.TemplateInfo.
FormattedModelValue
= "Formatted string";
ViewDataOfTTest.cs (1)
83
viewData.TemplateInfo.
FormattedModelValue
= null;
23 references to FormattedModelValue
Microsoft.AspNetCore.Mvc.ViewFeatures (15)
DefaultDisplayTemplates.cs (7)
150
if (htmlHelper.ViewData.TemplateInfo.
FormattedModelValue
== htmlHelper.ViewData.Model)
164
var linkedText = (htmlHelper.ViewData.TemplateInfo.
FormattedModelValue
== null) ?
166
htmlHelper.ViewData.TemplateInfo.
FormattedModelValue
.ToString();
183
return new HtmlString(htmlHelper.ViewData.TemplateInfo.
FormattedModelValue
.ToString());
268
var value = htmlHelper.ViewData.TemplateInfo.
FormattedModelValue
;
280
var linkedText = (htmlHelper.ViewData.TemplateInfo.
FormattedModelValue
== null) ?
282
htmlHelper.ViewData.TemplateInfo.
FormattedModelValue
.ToString();
DefaultEditorTemplates.cs (6)
132
if (htmlHelper.ViewData.TemplateInfo.
FormattedModelValue
== htmlHelper.ViewData.Model)
222
value: htmlHelper.ViewContext.ViewData.TemplateInfo.
FormattedModelValue
.ToString(),
317
value = htmlHelper.ViewData.TemplateInfo.
FormattedModelValue
;
411
return GenerateTextBox(htmlHelper, htmlHelper.ViewData.TemplateInfo.
FormattedModelValue
, htmlAttributes);
423
if (htmlHelper.ViewData.TemplateInfo.
FormattedModelValue
!= value && metadata.HasNonDefaultEditFormat)
437
return GenerateTextBox(htmlHelper, inputType, htmlHelper.ViewData.TemplateInfo.
FormattedModelValue
);
TemplateInfo.cs (2)
33
FormattedModelValue = 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)
69
Assert.Equal(string.Empty, viewData.TemplateInfo.
FormattedModelValue
);
87
Assert.Equal(string.Empty, viewData.TemplateInfo.
FormattedModelValue
);