32 writes to ModelTypeInfo
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
BindPropertyIntegrationTest.cs (1)
203
ModelTypeInfo
= typeInfo,
Microsoft.AspNetCore.Mvc.RazorPages (1)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
55
ModelTypeInfo
= applicationModel.ModelType,
Microsoft.AspNetCore.Mvc.RazorPages.Test (30)
Infrastructure\DefaultPageFactoryProviderTest.cs (3)
111
ModelTypeInfo
= typeof(ViewDataTestPageModel).GetTypeInfo()
141
ModelTypeInfo
= typeof(ViewDataTestPageModel).GetTypeInfo(),
168
ModelTypeInfo
= typeof(DerivedViewDataTestPageModel).GetTypeInfo(),
Infrastructure\DefaultPageModelActivatorProviderTest.cs (6)
37
ModelTypeInfo
= typeof(SimpleModel).GetTypeInfo(),
67
ModelTypeInfo
= typeof(ModelWithServices).GetTypeInfo(),
139
ModelTypeInfo
= typeof(DisposableModel).GetTypeInfo(),
164
ModelTypeInfo
= model.GetType().GetTypeInfo()
185
ModelTypeInfo
= model.GetType().GetTypeInfo()
206
ModelTypeInfo
= model.GetType().GetTypeInfo()
Infrastructure\DefaultPageModelFactoryProviderTest.cs (4)
47
ModelTypeInfo
= typeof(SimpleModel).GetTypeInfo(),
67
ModelTypeInfo
= typeof(ModelWithPageContext).GetTypeInfo(),
88
ModelTypeInfo
= typeof(SimpleModel).GetTypeInfo()
110
ModelTypeInfo
= typeof(SimpleModel).GetTypeInfo()
Infrastructure\PageActionInvokerProviderTest.cs (1)
486
ModelTypeInfo
= modelTypeInfo ?? pageTypeInfo,
Infrastructure\PageActionInvokerTest.cs (4)
1449
ModelTypeInfo
= typeof(TestPage).GetTypeInfo(),
1583
ModelTypeInfo
= typeof(TestPage).GetTypeInfo(),
1611
ModelTypeInfo
= typeof(PocoModel).GetTypeInfo(),
1639
ModelTypeInfo
= typeof(TestPageModel).GetTypeInfo(),
Infrastructure\PageBinderFactoryTest.cs (9)
55
ModelTypeInfo
= typeof(PageModelWithNoBoundProperties).GetTypeInfo(),
106
ModelTypeInfo
= typeof(PageModelWithNoVisibleBoundProperties).GetTypeInfo(),
157
ModelTypeInfo
= typeof(PageModelWithReadOnlyProperties).GetTypeInfo(),
266
ModelTypeInfo
= typeof(PageModelWithProperty).GetTypeInfo(),
320
ModelTypeInfo
= type,
379
ModelTypeInfo
= type,
438
ModelTypeInfo
= type,
489
ModelTypeInfo
= type,
536
ModelTypeInfo
= type,
Infrastructure\ServiceBasedPageModelActivatorProviderTest.cs (3)
46
ModelTypeInfo
= typeof(DISimpleModel).GetTypeInfo(),
78
ModelTypeInfo
= typeof(DISimpleModel).GetTypeInfo(),
109
ModelTypeInfo
= typeof(DISimpleModel).GetTypeInfo(),
18 references to ModelTypeInfo
Microsoft.AspNetCore.Mvc.RazorPages (14)
CompiledPageActionDescriptor.cs (1)
39
/// the same as <see cref="PageTypeInfo"/> and <see cref="
ModelTypeInfo
"/> if the page does not have an
Infrastructure\DefaultPageModelActivatorProvider.cs (5)
23
var modelTypeInfo = actionDescriptor.
ModelTypeInfo
?.AsType();
27
nameof(actionDescriptor.
ModelTypeInfo
),
40
if (typeof(IDisposable).GetTypeInfo().IsAssignableFrom(actionDescriptor.
ModelTypeInfo
))
52
if (typeof(IAsyncDisposable).GetTypeInfo().IsAssignableFrom(actionDescriptor.
ModelTypeInfo
))
57
if (typeof(IDisposable).GetTypeInfo().IsAssignableFrom(actionDescriptor.
ModelTypeInfo
))
Infrastructure\DefaultPageModelFactoryProvider.cs (4)
24
if (descriptor.
ModelTypeInfo
== null)
31
descriptor.
ModelTypeInfo
.AsType(),
52
if (descriptor.
ModelTypeInfo
== null)
64
if (descriptor.
ModelTypeInfo
== null)
Infrastructure\PageActionInvoker.cs (1)
164
if (_actionDescriptor.
ModelTypeInfo
== _actionDescriptor.PageTypeInfo)
Infrastructure\PageActionInvokerCache.cs (1)
87
if (compiledActionDescriptor.
ModelTypeInfo
!= compiledActionDescriptor.PageTypeInfo)
Infrastructure\ServiceBasedPageModelActivatorProvider.cs (2)
18
var modelType = descriptor.
ModelTypeInfo
?.AsType();
22
nameof(descriptor.
ModelTypeInfo
),
Microsoft.AspNetCore.Mvc.RazorPages.Test (4)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (1)
88
Assert.Same(pageApplicationModel.ModelType, actual.
ModelTypeInfo
);
Infrastructure\DefaultPageModelFactoryProviderTest.cs (1)
135
return (context) => Activator.CreateInstance(descriptor.
ModelTypeInfo
.AsType());
Infrastructure\PageActionInvokerTest.cs (2)
1513
var viewDataFactory = ViewDataDictionaryFactory.CreateFactory(actionDescriptor.
ModelTypeInfo
);
1542
modelFactory = _ => Activator.CreateInstance(actionDescriptor.
ModelTypeInfo
.AsType());