24 references to ModelType
Microsoft.AspNetCore.Mvc.TagHelpers (5)
InputTagHelper.cs (4)
302
if (modelExplorer.
ModelType
== typeof(string))
315
else if (modelExplorer.
ModelType
!= typeof(bool))
320
modelExplorer.
ModelType
.FullName,
538
var fieldType = modelExplorer.
ModelType
;
SelectTagHelper.cs (1)
98
var realModelType = For.ModelExplorer.
ModelType
;
Microsoft.AspNetCore.Mvc.ViewFeatures (7)
ModelExplorer.cs (5)
139
/// Retrieving the <see cref="
ModelType
"/> will execute the model accessor function if this
171
/// for <see cref="
ModelType
"/>.
183
var propertyHelpers = PropertyHelper.GetProperties(
ModelType
);
402
if (Metadata.ModelType !=
ModelType
)
404
metadata = _metadataProvider.GetMetadataForType(
ModelType
);
TemplateBuilder.cs (1)
130
var visitedObjectsKey = _model ?? _modelExplorer.
ModelType
;
TemplateRenderer.cs (1)
137
Resources.FormatTemplateHelpers_NoTemplate(_viewData.ModelExplorer.
ModelType
.FullName));
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (12)
ExpressionMetadataProviderTest.cs (8)
31
Assert.Equal(typeof(TestModel), explorer.
ModelType
);
49
Assert.Equal(typeof(Category), explorer.
ModelType
);
67
Assert.Equal(typeof(TestModel), explorer.
ModelType
);
89
Assert.Equal(typeof(int), explorer.
ModelType
);
133
Assert.Equal(expectedType, explorer.
ModelType
);
174
Assert.Equal(typeof(string), explorer.
ModelType
);
196
Assert.Equal(typeof(string), explorer.
ModelType
);
218
Assert.Equal(typeof(string), explorer.
ModelType
);
ModelExplorerTest.cs (2)
18
var modelType = modelExplorer.
ModelType
;
32
var modelType = modelExplorer.
ModelType
;
ViewDataDictionaryOfTModelTest.cs (2)
195
Assert.Equal(expectedType, viewData1.ModelExplorer.
ModelType
);
200
Assert.Equal(expectedType, viewData2.ModelExplorer.
ModelType
);