Class EmptyModelMetadataProvider
Provides an empty metadata provider for data models that do not require metadata.
public class EmptyModelMetadataProvider : AssociatedMetadataProvider
- Inheritance
-
EmptyModelMetadataProvider
- Inherited Members
Constructors
EmptyModelMetadataProvider()
Initializes a new instance of the EmptyModelMetadataProvider class.
public EmptyModelMetadataProvider()
Methods
CreateMetadata(IEnumerable<Attribute>, Type, Func<object>, Type, string)
Creates a new instance of the ModelMetadata class.
protected override ModelMetadata CreateMetadata(IEnumerable<Attribute> attributes, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName)
Parameters
attributesIEnumerable<Attribute>The attributes.
containerTypeTypeThe type of the container.
modelAccessorFunc<object>The model accessor.
modelTypeTypeThe type of the model.
propertyNamestringThe name of the model.
Returns
- ModelMetadata
A new instance of the ModelMetadata class.