10 instantiations of PagePropertyModel
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\DefaultPageApplicationModelPartsProvider.cs (1)
131
var model = new
PagePropertyModel
(property, propertyAttributes)
ApplicationModels\PageApplicationModel.cs (1)
68
HandlerProperties = new List<PagePropertyModel>(other.HandlerProperties.Select(p => new
PagePropertyModel
(p)));
Microsoft.AspNetCore.Mvc.RazorPages.Test (8)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (5)
74
new
PagePropertyModel
(handlerTypeInfo.GetProperty(nameof(TestModel.Property)), new object[0])
125
new
PagePropertyModel
(handlerTypeInfo.GetProperty(nameof(TestModel.Property)), new object[0])
313
var propertyModel = new
PagePropertyModel
(
355
var propertyModel1 = new
PagePropertyModel
(
362
var propertyModel2 = new
PagePropertyModel
(
Infrastructure\CompiledPageActionDescriptorFactoryTest.cs (3)
270
var propertyModel = new
PagePropertyModel
(propertyInfo, new[] { propertyModelConvention.Object });
301
var propertyModel = new
PagePropertyModel
(propertyInfo, Array.Empty<object>());
331
var propertyModel = new
PagePropertyModel
(propertyInfo, new[] { propertyModelConvention.Object })
28 references to PagePropertyModel
Microsoft.AspNetCore.Mvc.RazorPages (20)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
125
var
propertyModel = properties[i];
ApplicationModels\DefaultPageApplicationModelPartsProvider.cs (4)
100
/// Creates a <see cref="
PagePropertyModel
"/> for the <paramref name="property"/>.
103
/// <returns>The <see cref="
PagePropertyModel
"/>.</returns>
104
public
PagePropertyModel
CreatePropertyModel(PropertyInfo property)
131
var
model = new PagePropertyModel(property, propertyAttributes)
ApplicationModels\DefaultPageApplicationModelProvider.cs (1)
130
var
propertyModel = _pageApplicationModelPartsProvider.CreatePropertyModel(properties[i].Property);
ApplicationModels\IPageApplicationModelPartsProvider.cs (3)
28
/// Creates a <see cref="
PagePropertyModel
"/> for the <paramref name="property"/>.
31
/// <returns>The <see cref="
PagePropertyModel
"/>.</returns>
32
PagePropertyModel
CreatePropertyModel(PropertyInfo property);
ApplicationModels\PageApplicationModel.cs (4)
46
HandlerProperties = new List<
PagePropertyModel
>();
68
HandlerProperties = new List<
PagePropertyModel
>(other.HandlerProperties.Select(p => new PagePropertyModel(p)));
151
/// Gets the sequence of <see cref="
PagePropertyModel
"/> instances on <see cref="PageHandlerModel"/>.
153
public IList<
PagePropertyModel
> HandlerProperties { get; }
ApplicationModels\PagePropertyModel.cs (6)
17
/// Creates a new instance of <see cref="
PagePropertyModel
"/>.
30
/// Creates a new instance of <see cref="
PagePropertyModel
"/> from a given <see cref="
PagePropertyModel
"/>.
32
/// <param name="other">The <see cref="
PagePropertyModel
"/> which needs to be copied.</param>
33
public PagePropertyModel(
PagePropertyModel
other)
44
/// Gets or sets the <see cref="PageApplicationModel"/> this <see cref="
PagePropertyModel
"/> is associated with.
Infrastructure\CompiledPageActionDescriptorFactory.cs (1)
87
foreach (
var
propertyModel in properties)
Microsoft.AspNetCore.Mvc.RazorPages.Test (8)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (3)
313
var
propertyModel = new PagePropertyModel(
355
var
propertyModel1 = new PagePropertyModel(
362
var
propertyModel2 = new PagePropertyModel(
Infrastructure\CompiledPageActionDescriptorFactoryTest.cs (5)
270
var
propertyModel = new PagePropertyModel(propertyInfo, new[] { propertyModelConvention.Object });
301
var
propertyModel = new PagePropertyModel(propertyInfo, Array.Empty<object>());
331
var
propertyModel = new PagePropertyModel(propertyInfo, new[] { propertyModelConvention.Object })
341
var
model = Assert.IsType<
PagePropertyModel
>(m);