7 writes to ModelType
Microsoft.AspNetCore.Identity.UI (1)
IdentityPageModelConvention.cs (1)
21
model.
ModelType
= templateInstance.GetTypeInfo();
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\DefaultPageApplicationModelProvider.cs (1)
113
ModelType
= modelTypeInfo,
ApplicationModels\PageApplicationModel.cs (1)
62
ModelType
= other.ModelType;
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (3)
62
ModelType
= typeof(TestModel).GetTypeInfo(),
113
ModelType
= typeof(string).GetTypeInfo(),
155
ModelType
= typeof(TestModel).GetTypeInfo(),
RazorPagesWebSite (1)
Conventions\CustomModelTypeConvention.cs (1)
15
model.
ModelType
= typeof(CustomModelTypeModel<User>).GetTypeInfo();
12 references to ModelType
Microsoft.AspNetCore.Identity.UI (1)
IdentityPageModelConvention.cs (1)
13
var defaultUIAttribute = model.
ModelType
?.GetCustomAttribute<IdentityDefaultUIAttribute>();
Microsoft.AspNetCore.Mvc.RazorPages (5)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (4)
33
if (applicationModel.
ModelType
!= null && applicationModel.DeclaredModelType != null &&
34
!applicationModel.DeclaredModelType.IsAssignableFrom(applicationModel.
ModelType
))
38
applicationModel.
ModelType
.Name,
55
ModelTypeInfo = applicationModel.
ModelType
,
ApplicationModels\PageApplicationModel.cs (1)
62
ModelType = other.
ModelType
;
Microsoft.AspNetCore.Mvc.RazorPages.Test (5)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (1)
88
Assert.Same(pageApplicationModel.
ModelType
, actual.ModelTypeInfo);
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (4)
458
Assert.Same(typeof(EmptyPage).GetTypeInfo(), pageModel.
ModelType
);
479
Assert.Same(typeof(EmptyPageModel).GetTypeInfo(), pageModel.
ModelType
);
592
Assert.Same(typeof(ModelWithHandler).GetTypeInfo(), pageModel.
ModelType
);
641
Assert.Same(typeof(PocoModel).GetTypeInfo(), pageModel.
ModelType
);
RazorPagesWebSite (1)
Conventions\CustomModelTypeConvention.cs (1)
13
if (model.
ModelType
== typeof(CustomModelTypeModel))