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()

Initializes a new instance of the CachedDataAnnotationsModelMetadataProvider class.

Properties

CacheItemPolicy

Gets the cache item policy.

(Inherited from CachedAssociatedMetadataProvider<TModelMetadata>)
CacheKeyPrefix

Gets the cache key prefix.

(Inherited from CachedAssociatedMetadataProvider<TModelMetadata>)
PrototypeCache

Gets the prototype cache.

(Inherited from CachedAssociatedMetadataProvider<TModelMetadata>)

Methods

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>)

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

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)

Returns a container prototype instances of the metadata class.

FilterAttributes(Type, PropertyDescriptor, IEnumerable<Attribute>)

Gets a list of attributes.

(Inherited from AssociatedMetadataProvider)
GetMetadataForProperties(Object, Type)

Gets the metadata for the properties.

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

Returns the metadata for the specified property.

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

Returns the metadata for the specified property.

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

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

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

Returns the type descriptor from the specified type.

(Inherited from AssociatedMetadataProvider)

Applies to