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
파일 보기 프로젝트 열기: RebelCMS/rebelcmsxu5 1 사용 예제들

공개 메소드들

메소드 설명
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