C# Class Felinesoft.UmbracoCodeFirst.Attributes.ContentPropertyAttribute

Inheritance: CodeFirstAttribute, IInitialisablePropertyAttribute
Afficher le fichier Open project: DanMannMann/UmbracoCodeFirst Class Usage Examples

Méthodes publiques

Méthode Description
ContentPropertyAttribute ( 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. Any properties which are not set will be inferred from the property metadata and the data type metadata if possible.

Initialise ( PropertyInfo target ) : void

Initialises the attribute properties based on the property to which the attribute is applied.

Method Details

ContentPropertyAttribute() public méthode

Specifies that a property should be used as a document property on a document type. Any properties which are not set will be inferred from the property metadata and the data type metadata if possible.
public ContentPropertyAttribute ( 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. ///
Résultat System

Initialise() public méthode

Initialises the attribute properties based on the property to which the attribute is applied.
public Initialise ( PropertyInfo target ) : void
target System.Reflection.PropertyInfo The property to which the attribute is applied
Résultat void