5 instantiations of ModelAttributes
Microsoft.AspNetCore.Mvc.Core (5)
ModelBinding\Metadata\ModelAttributes.cs (5)
16
internal static readonly ModelAttributes Empty = new
ModelAttributes
(Array.Empty<object>());
147
return new
ModelAttributes
(typeAttributes, propertyAttributes, parameterAttributes: null);
168
return new
ModelAttributes
(attributes, propertyAttributes: null, parameterAttributes: null);
188
return new
ModelAttributes
(typeAttributes, propertyAttributes: null, parameterAttributes);
212
return new
ModelAttributes
(typeAttributes, propertyAttributes: null, parameterAttributes);
24 references to ModelAttributes
Microsoft.AspNetCore.Mvc.Core (24)
ModelBinding\Metadata\BindingMetadataProviderContext.cs (1)
20
ModelAttributes
attributes)
ModelBinding\Metadata\DefaultMetadataDetails.cs (2)
21
public DefaultMetadataDetails(ModelMetadataIdentity key,
ModelAttributes
attributes)
32
public
ModelAttributes
ModelAttributes { get; }
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
79
public
ModelAttributes
Attributes => _details.ModelAttributes;
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (5)
247
var constructorDetails = new DefaultMetadataDetails(constructorKey,
ModelAttributes
.Empty);
361
var
attributes =
ModelAttributes
.GetAttributesForProperty(
399
ModelAttributes
.GetAttributesForType(key.ModelType));
413
ModelAttributes
.GetAttributesForParameter(key.ParameterInfo!, key.ModelType));
ModelBinding\Metadata\DisplayMetadataProviderContext.cs (1)
20
ModelAttributes
attributes)
ModelBinding\Metadata\ModelAttributes.cs (13)
16
internal static readonly
ModelAttributes
Empty = new ModelAttributes(Array.Empty<object>());
19
/// Creates a new <see cref="
ModelAttributes
"/>.
27
/// Creates a new <see cref="
ModelAttributes
"/>.
111
/// A <see cref="
ModelAttributes
"/> instance with the attributes of the property and its <see cref="Type"/>.
113
public static
ModelAttributes
GetAttributesForProperty(Type type, PropertyInfo property)
127
/// A <see cref="
ModelAttributes
"/> instance with the attributes of the property and its <see cref="Type"/>.
129
public static
ModelAttributes
GetAttributesForProperty(Type containerType, PropertyInfo property, Type modelType)
155
/// <returns>A <see cref="
ModelAttributes
"/> instance with the attributes of the <see cref="Type"/>.</returns>
156
public static
ModelAttributes
GetAttributesForType(Type type)
178
/// A <see cref="
ModelAttributes
"/> instance with the attributes of the parameter and its <see cref="Type"/>.
180
public static
ModelAttributes
GetAttributesForParameter(ParameterInfo parameterInfo)
199
/// A <see cref="
ModelAttributes
"/> instance with the attributes of the parameter and its <see cref="Type"/>.
201
public static
ModelAttributes
GetAttributesForParameter(ParameterInfo parameterInfo, Type modelType)
ModelBinding\Metadata\ValidationMetadataProviderContext.cs (1)
20
ModelAttributes
attributes)