ModelMetadataProvider ModelMetadataProvider ModelMetadataProvider Class

Definition

Provides an abstract base class for a custom metadata provider.

public abstract class ModelMetadataProvider
type ModelMetadataProvider = class
Public MustInherit Class ModelMetadataProvider
Inheritance
ModelMetadataProviderModelMetadataProviderModelMetadataProvider
Derived

Constructors

ModelMetadataProvider() ModelMetadataProvider() ModelMetadataProvider()

When overridden in a derived class, initializes a new instance of the object that derives from the ModelMetadataProvider class.

Methods

GetMetadataForProperties(Object, Type) GetMetadataForProperties(Object, Type) GetMetadataForProperties(Object, Type)

Gets a ModelMetadata object for each property of a model.

GetMetadataForProperty(Func<Object>, Type, String) GetMetadataForProperty(Func<Object>, Type, String) GetMetadataForProperty(Func<Object>, Type, String)

Gets metadata for the specified property.

GetMetadataForType(Func<Object>, Type) GetMetadataForType(Func<Object>, Type) GetMetadataForType(Func<Object>, Type)

Gets metadata for the specified model accessor and model type.

Applies to