12 instantiations of PropertyModel
Microsoft.AspNetCore.Mvc.Core (2)
ApplicationModels\ControllerModel.cs (1)
67
new List<PropertyModel>(other.ControllerProperties.Select(p => new
PropertyModel
(p) { Controller = this }));
ApplicationModels\DefaultApplicationModelProvider.cs (1)
237
var propertyModel = new
PropertyModel
(propertyInfo, attributes)
Microsoft.AspNetCore.Mvc.Core.Test (10)
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (2)
23
new
PropertyModel
(
32
new
PropertyModel
(
ApplicationModels\ControllerModelTest.cs (2)
25
controller.ControllerProperties.Add(new
PropertyModel
(
81
new
PropertyModel
(typeof(TestController).GetProperty("TestProperty"), new List<object>()));
ApplicationModels\PropertyModelTest.cs (2)
15
var propertyModel = new
PropertyModel
(typeof(TestController).GetProperty("Property"),
24
var propertyModel2 = new
PropertyModel
(propertyModel);
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (4)
99
new
PropertyModel
(property1, Array.Empty<object>()),
119
new
PropertyModel
(property2, Array.Empty<object>()),
261
new
PropertyModel
(controllerType.GetProperty(nameof(HelloController.Property1)), Array.Empty<object>())
287
new
PropertyModel
(controllerType.GetProperty(nameof(HelloController.Property1)), new[] { propertyModelConvention })
21 references to PropertyModel
Microsoft.AspNetCore.Mvc.Core (16)
ApplicationModels\ApplicationModelConventions.cs (1)
87
foreach (
var
property in properties)
ApplicationModels\ControllerActionDescriptorBuilder.cs (1)
87
private static ParameterDescriptor CreateParameterDescriptor(
PropertyModel
propertyModel)
ApplicationModels\ControllerModel.cs (3)
36
ControllerProperties = new List<
PropertyModel
>();
67
new List<
PropertyModel
>(other.ControllerProperties.Select(p => new PropertyModel(p) { Controller = this }));
115
public IList<
PropertyModel
> ControllerProperties { get; }
ApplicationModels\DefaultApplicationModelProvider.cs (5)
65
var
propertyModel = CreatePropertyModel(propertyInfo);
206
/// Creates a <see cref="
PropertyModel
"/> for the given <see cref="PropertyInfo"/>.
209
/// <returns>A <see cref="
PropertyModel
"/> for the given <see cref="PropertyInfo"/>.</returns>
210
internal
PropertyModel
CreatePropertyModel(PropertyInfo propertyInfo)
237
var
propertyModel = new PropertyModel(propertyInfo, attributes)
ApplicationModels\PropertyModel.cs (6)
17
/// Creates a new instance of <see cref="
PropertyModel
"/>.
30
/// Creates a new instance of <see cref="
PropertyModel
"/> from a given <see cref="
PropertyModel
"/>.
32
/// <param name="other">The <see cref="
PropertyModel
"/> which needs to be copied.</param>
33
public PropertyModel(
PropertyModel
other)
44
/// Gets or sets the <see cref="ControllerModel"/> this <see cref="
PropertyModel
"/> is associated with.
Microsoft.AspNetCore.Mvc.Core.Test (5)
ApplicationModels\PropertyModelTest.cs (3)
15
var
propertyModel = new PropertyModel(typeof(TestController).GetProperty("Property"),
24
var
propertyModel2 = new PropertyModel(propertyModel);
27
foreach (var property in typeof(
PropertyModel
).GetProperties())
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (2)
482
var
property = (
PropertyModel
)modelBase;