C# Класс FluentMetadata.MVC.FluentMetadataProvider

A custom metadata provider for FluentMetadata.
Наследование: System.Web.Mvc.ModelMetadataProvider
Показать файл Открыть проект

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

Метод Описание
GetMetadataForProperties ( object container, Type containerType ) : IEnumerable

Gets a T:System.Web.Mvc.ModelMetadata object for each property of a model.

GetMetadataForProperty ( Func modelAccessor, Type containerType, string propertyName ) : ModelMetadata

Gets metadata for the specified property.

GetMetadataForType ( Func modelAccessor, Type modelType ) : ModelMetadata

Gets metadata for the specified model accessor and model type.

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

Метод Описание
GetProperyAccessor ( object container, Metadata metadata ) : Func

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

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

Gets a T:System.Web.Mvc.ModelMetadata object for each property of a model.
public GetMetadataForProperties ( object container, Type containerType ) : IEnumerable
container object The container.
containerType System.Type The type of the container.
Результат IEnumerable

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

Gets metadata for the specified property.
public GetMetadataForProperty ( Func modelAccessor, Type containerType, string propertyName ) : ModelMetadata
modelAccessor Func The model accessor.
containerType System.Type The type of the container.
propertyName string The property to get the metadata model for.
Результат ModelMetadata

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

Gets metadata for the specified model accessor and model type.
public GetMetadataForType ( Func modelAccessor, Type modelType ) : ModelMetadata
modelAccessor Func The model accessor.
modelType System.Type The type of the model.
Результат ModelMetadata