C# 클래스 Felinesoft.UmbracoCodeFirst.Attributes.DocumentPickerPropertyAttribute

상속: ContentPropertyAttribute, IDataTypeRedirect, IInitialisablePropertyAttribute
파일 보기 프로젝트 열기: DanMannMann/UmbracoCodeFirst

공개 메소드들

메소드 설명
DocumentPickerPropertyAttribute ( string name = null, string alias = null, bool mandatory = false, string description = "", int sortOrder, bool addTabAliasToPropertyAlias = true, string dataType = null ) : System

Specifies that a property should be used as a document property on a document type and that the SingleDocumentPicker should be used in Umbraco to choose the value for this property. Any properties which are not set will be inferred from the property metadata and the data type metadata if possible.

GetOriginalDataTypeObject ( object redirectedValue ) : object
GetRedirectedValue ( object originalDataTypeObject ) : object
Initialise ( PropertyInfo propertyTarget ) : void
Redirect ( PropertyInfo property ) : Type

메소드 상세

DocumentPickerPropertyAttribute() 공개 메소드

Specifies that a property should be used as a document property on a document type and that the SingleDocumentPicker should be used in Umbraco to choose the value for this property. Any properties which are not set will be inferred from the property metadata and the data type metadata if possible.
public DocumentPickerPropertyAttribute ( string name = null, string alias = null, bool mandatory = false, string description = "", int sortOrder, bool addTabAliasToPropertyAlias = true, string dataType = null ) : System
name string Friendly name of the property
alias string Alias of the property
mandatory bool if set to true [mandatory].
description string The description.
sortOrder int The sort order.
addTabAliasToPropertyAlias bool if set to true add's the tab's alias as a suffix to the property alias.
dataType string /// The name of the data type to use for this property. /// This property is ignored if the property type is a code-first data type. It should be used /// when the property type matches the output type of the relevant property editor value converter. /// The specified data type must already exist in Umbraco, it will not be created or updated when /// specified using this value. ///
리턴 System

GetOriginalDataTypeObject() 공개 메소드

public GetOriginalDataTypeObject ( object redirectedValue ) : object
redirectedValue object
리턴 object

GetRedirectedValue() 공개 메소드

public GetRedirectedValue ( object originalDataTypeObject ) : object
originalDataTypeObject object
리턴 object

Initialise() 공개 메소드

public Initialise ( PropertyInfo propertyTarget ) : void
propertyTarget System.Reflection.PropertyInfo
리턴 void

Redirect() 공개 메소드

public Redirect ( PropertyInfo property ) : Type
property System.Reflection.PropertyInfo
리턴 System.Type