C# Класс Rebel.Framework.Localization.Web.Mvc.LocalizingModelMetadataProvider

Localizes display names. If a name is specified it's considered a key If a display name is not specified for a property the following keys are considered in this order: - Namespace . Class name . Property name - Namespace part after the assembly's default namespace . Class name . Property name (e.g. the property "Name" of the class "Rebel.Framework.Web.Models.CoreEntityModel" becomes Models.CoreEntityModel.Name) - Class name . Property name - Property name (if TestSimplePropertyName is true)
Наследование: System.Web.Mvc.DataAnnotationsModelMetadataProvider
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetConventionKeyNames ( Type containerType, string propertyName, bool testSimplePropertyName ) : IEnumerable
LocalizingModelMetadataProvider ( ) : System

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

Метод Описание
CreateMetadata ( IEnumerable attributes, Type containerType, Func modelAccessor, Type modelType, string propertyName ) : 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

GetConventionKeyNames() публичный статический Метод

public static GetConventionKeyNames ( Type containerType, string propertyName, bool testSimplePropertyName ) : IEnumerable
containerType System.Type
propertyName string
testSimplePropertyName bool
Результат IEnumerable

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

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