C# Class BoC.Web.Mvc.MetaData.ExtraModelMetadataProvider

Inheritance: System.Web.Mvc.DataAnnotationsModelMetadataProvider
Mostrar archivo Open project: csteeg/BoC Class Usage Examples

Public Methods

Method Description
ExtraModelMetadataProvider ( ) : System
GetMetadataForProperties ( object container, Type containerType ) : IEnumerable
GetMetadataForProperty ( Func modelAccessor, Type containerType, string propertyName ) : ModelMetadata
GetMetadataForType ( Func modelAccessor, Type modelType ) : ModelMetadata

Protected Methods

Method Description
CreateMetadata ( IEnumerable attributes, Type containerType, Func modelAccessor, Type modelType, string propertyName ) : ModelMetadata

Private Methods

Method Description
ApplyConventionsToValidationAttributes ( IEnumerable attributes, Type containerType, string propertyName, Type defaultResourceType ) : void
GetDisplayAttributeName ( Type containerType, string propertyName, System.ComponentModel.DataAnnotations.DisplayAttribute displayAttribute ) : string
GetResourceKey ( Type containerType, string propertyName ) : string
Modify ( ModelMetadata metadata ) : ModelMetadata

Method Details

CreateMetadata() protected method

protected CreateMetadata ( IEnumerable attributes, Type containerType, Func modelAccessor, Type modelType, string propertyName ) : ModelMetadata
attributes IEnumerable
containerType System.Type
modelAccessor Func
modelType System.Type
propertyName string
return ModelMetadata

ExtraModelMetadataProvider() public method

public ExtraModelMetadataProvider ( ) : System
return System

GetMetadataForProperties() public method

public GetMetadataForProperties ( object container, Type containerType ) : IEnumerable
container object
containerType System.Type
return IEnumerable

GetMetadataForProperty() public method

public GetMetadataForProperty ( Func modelAccessor, Type containerType, string propertyName ) : ModelMetadata
modelAccessor Func
containerType System.Type
propertyName string
return ModelMetadata

GetMetadataForType() public method

public GetMetadataForType ( Func modelAccessor, Type modelType ) : ModelMetadata
modelAccessor Func
modelType System.Type
return ModelMetadata