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