12 instantiations of PropertyModel
Microsoft.AspNetCore.Mvc.Core (2)
ApplicationModels\ControllerModel.cs (1)
67new List<PropertyModel>(other.ControllerProperties.Select(p => new PropertyModel(p) { Controller = this }));
ApplicationModels\DefaultApplicationModelProvider.cs (1)
237var propertyModel = new PropertyModel(propertyInfo, attributes)
Microsoft.AspNetCore.Mvc.Core.Test (10)
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (2)
23new PropertyModel( 32new PropertyModel(
ApplicationModels\ControllerModelTest.cs (2)
25controller.ControllerProperties.Add(new PropertyModel( 81new PropertyModel(typeof(TestController).GetProperty("TestProperty"), new List<object>()));
ApplicationModels\PropertyModelTest.cs (2)
15var propertyModel = new PropertyModel(typeof(TestController).GetProperty("Property"), 24var propertyModel2 = new PropertyModel(propertyModel);
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (4)
99new PropertyModel(property1, Array.Empty<object>()), 119new PropertyModel(property2, Array.Empty<object>()), 261new PropertyModel(controllerType.GetProperty(nameof(HelloController.Property1)), Array.Empty<object>()) 287new PropertyModel(controllerType.GetProperty(nameof(HelloController.Property1)), new[] { propertyModelConvention })
21 references to PropertyModel
Microsoft.AspNetCore.Mvc.Core (16)
ApplicationModels\ApplicationModelConventions.cs (1)
87foreach (var property in properties)
ApplicationModels\ControllerActionDescriptorBuilder.cs (1)
87private static ParameterDescriptor CreateParameterDescriptor(PropertyModel propertyModel)
ApplicationModels\ControllerModel.cs (3)
36ControllerProperties = new List<PropertyModel>(); 67new List<PropertyModel>(other.ControllerProperties.Select(p => new PropertyModel(p) { Controller = this })); 115public IList<PropertyModel> ControllerProperties { get; }
ApplicationModels\DefaultApplicationModelProvider.cs (5)
65var 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> 210internal PropertyModel CreatePropertyModel(PropertyInfo propertyInfo) 237var 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> 33public 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)
15var propertyModel = new PropertyModel(typeof(TestController).GetProperty("Property"), 24var propertyModel2 = new PropertyModel(propertyModel); 27foreach (var property in typeof(PropertyModel).GetProperties())
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (2)
482var property = (PropertyModel)modelBase;