C# Класс BoC.Web.Mvc.MetaData.ExtraModelMetadataProvider

Наследование: System.Web.Mvc.DataAnnotationsModelMetadataProvider
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ExtraModelMetadataProvider ( ) : System
GetMetadataForProperties ( object container, Type containerType ) : IEnumerable
GetMetadataForProperty ( Func modelAccessor, Type containerType, string propertyName ) : ModelMetadata
GetMetadataForType ( Func modelAccessor, Type modelType ) : ModelMetadata

Защищенные методы

Метод Описание
CreateMetadata ( IEnumerable attributes, Type containerType, Func modelAccessor, Type modelType, string propertyName ) : ModelMetadata

Приватные методы

Метод Описание
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

Описание методов

CreateMetadata() защищенный Метод

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
Результат ModelMetadata

ExtraModelMetadataProvider() публичный Метод

public ExtraModelMetadataProvider ( ) : System
Результат System

GetMetadataForProperties() публичный Метод

public GetMetadataForProperties ( object container, Type containerType ) : IEnumerable
container object
containerType System.Type
Результат IEnumerable

GetMetadataForProperty() публичный Метод

public GetMetadataForProperty ( Func modelAccessor, Type containerType, string propertyName ) : ModelMetadata
modelAccessor Func
containerType System.Type
propertyName string
Результат ModelMetadata

GetMetadataForType() публичный Метод

public GetMetadataForType ( Func modelAccessor, Type modelType ) : ModelMetadata
modelAccessor Func
modelType System.Type
Результат ModelMetadata