2 writes to _model
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
TemplateBuilder.cs (2)
55
_model
= modelExplorer.Model;
63
_model
= null;
7 references to _model
Microsoft.AspNetCore.Mvc.ViewFeatures (7)
TemplateBuilder.cs (7)
61
if (_metadata.ConvertEmptyStringToNull && string.Empty.Equals(
_model
))
78
viewData.ModelExplorer = _modelExplorer.GetExplorerForModel(
_model
);
84
var formattedModelValue =
_model
;
85
if (
_model
== null)
94
formattedModelValue = string.Format(CultureInfo.CurrentCulture, formatString,
_model
);
102
else if (viewData.ModelMetadata.IsEnum &&
_model
is Enum modelEnum)
130
var visitedObjectsKey =
_model
?? _modelExplorer.ModelType;