CachedDataAnnotationsModelMetadataProvider CachedDataAnnotationsModelMetadataProvider CachedDataAnnotationsModelMetadataProvider Class

Definition

Implements the default cached model metadata provider for ASP.NET MVC.

public class CachedDataAnnotationsModelMetadataProvider : System.Web.Mvc.CachedAssociatedMetadataProvider<System.Web.Mvc.CachedDataAnnotationsModelMetadata>
type CachedDataAnnotationsModelMetadataProvider = class
    inherit CachedAssociatedMetadataProvider<CachedDataAnnotationsModelMetadata>
Public Class CachedDataAnnotationsModelMetadataProvider
Inherits CachedAssociatedMetadataProvider(Of CachedDataAnnotationsModelMetadata)
Inheritance

Constructors

CachedDataAnnotationsModelMetadataProvider() CachedDataAnnotationsModelMetadataProvider() CachedDataAnnotationsModelMetadataProvider()

Initializes a new instance of the CachedDataAnnotationsModelMetadataProvider class.

Methods

CreateMetadata(IEnumerable<Attribute>, Type, Func<Object>, Type, String) CreateMetadata(IEnumerable<Attribute>, Type, Func<Object>, Type, String) CreateMetadata(IEnumerable<Attribute>, Type, Func<Object>, Type, String)

When overridden in a derived class, creates the cached model metadata for the property.

(Inherited from CachedAssociatedMetadataProvider<TModelMetadata>)
CreateMetadataFromPrototype(CachedDataAnnotationsModelMetadata, Func<Object>) CreateMetadataFromPrototype(CachedDataAnnotationsModelMetadata, Func<Object>) CreateMetadataFromPrototype(CachedDataAnnotationsModelMetadata, Func<Object>)

Returns a container of real instances of the cached metadata class based on prototype and model accessor.

CreateMetadataFromPrototype(TModelMetadata, Func<Object>) CreateMetadataFromPrototype(TModelMetadata, Func<Object>) CreateMetadataFromPrototype(TModelMetadata, Func<Object>)

Creates prototype metadata by applying the prototype and model access to yield the final metadata.

(Inherited from CachedAssociatedMetadataProvider<TModelMetadata>)
CreateMetadataPrototype(IEnumerable<Attribute>, Type, Type, String) CreateMetadataPrototype(IEnumerable<Attribute>, Type, Type, String) CreateMetadataPrototype(IEnumerable<Attribute>, Type, Type, String)

Returns a container prototype instances of the metadata class.

FilterAttributes(Type, PropertyDescriptor, IEnumerable<Attribute>) FilterAttributes(Type, PropertyDescriptor, IEnumerable<Attribute>) FilterAttributes(Type, PropertyDescriptor, IEnumerable<Attribute>)

Gets a list of attributes.

(Inherited from AssociatedMetadataProvider)
GetMetadataForProperties(Object, Type) GetMetadataForProperties(Object, Type) GetMetadataForProperties(Object, Type)

Gets the metadata for the properties.

(Inherited from CachedAssociatedMetadataProvider<TModelMetadata>)
GetMetadataForProperty(Func<Object>, Type, PropertyDescriptor) GetMetadataForProperty(Func<Object>, Type, PropertyDescriptor) GetMetadataForProperty(Func<Object>, Type, PropertyDescriptor)

Returns the metadata for the specified property.

(Inherited from CachedAssociatedMetadataProvider<TModelMetadata>)
GetMetadataForProperty(Func<Object>, Type, String) GetMetadataForProperty(Func<Object>, Type, String) GetMetadataForProperty(Func<Object>, Type, String)

Returns the metadata for the specified property.

(Inherited from CachedAssociatedMetadataProvider<TModelMetadata>)
GetMetadataForType(Func<Object>, Type) GetMetadataForType(Func<Object>, Type) GetMetadataForType(Func<Object>, Type)

Returns the cached metadata for the specified property using the type of the model.

(Inherited from CachedAssociatedMetadataProvider<TModelMetadata>)
GetTypeDescriptor(Type) GetTypeDescriptor(Type) GetTypeDescriptor(Type)

Returns the type descriptor from the specified type.

(Inherited from AssociatedMetadataProvider)

Properties

CacheItemPolicy CacheItemPolicy CacheItemPolicy

Gets the cache item policy.

(Inherited from CachedAssociatedMetadataProvider<TModelMetadata>)
CacheKeyPrefix CacheKeyPrefix CacheKeyPrefix

Gets the cache key prefix.

(Inherited from CachedAssociatedMetadataProvider<TModelMetadata>)
PrototypeCache PrototypeCache PrototypeCache

Gets the prototype cache.

(Inherited from CachedAssociatedMetadataProvider<TModelMetadata>)

Applies to