C# Класс Felinesoft.UmbracoCodeFirst.Attributes.DocumentPickerPropertyAttribute

Наследование: ContentPropertyAttribute, IDataTypeRedirect, IInitialisablePropertyAttribute
Показать файл Открыть проект

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

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