C# Class Felinesoft.UmbracoCodeFirst.Core.Modules.PropertyModule

Inheritance: IPropertyModule
Afficher le fichier Open project: DanMannMann/UmbracoCodeFirst

Méthodes publiques

Méthode Description
CreateProperty ( IContentTypeBase newContentType, TabRegistration tab, PropertyInfo item, Type documentClrType ) : PropertyRegistration

Creates a new property on the ContentType under the correct tab

Initialise ( IEnumerable classes ) : void
PropertyModule ( IDataTypeModule dataTypeModule, IDataTypeService dataTypeService ) : System
VerifyExistingProperty ( IContentTypeBase contentType, TabRegistration tab, PropertyInfo item, Type documentClrType, bool &modified ) : PropertyRegistration

Checks whether a property exists and adds if if it does not. The data type, alias, description and mandatory flag are update for existing properties, but not persisted. Callers should persist the value.

Private Methods

Méthode Description
IsInheritedProperty ( TabRegistration tab, Type documentClrType, PropertyRegistration property ) : bool
LogPropertySyncInfo ( IContentTypeBase contentType, TabRegistration tab, PropertyRegistration property, string action, [ sourceMethod = null ) : void

Method Details

CreateProperty() public méthode

Creates a new property on the ContentType under the correct tab
public CreateProperty ( IContentTypeBase newContentType, TabRegistration tab, PropertyInfo item, Type documentClrType ) : PropertyRegistration
newContentType IContentTypeBase
tab TabRegistration
item System.Reflection.PropertyInfo
documentClrType System.Type
Résultat PropertyRegistration

Initialise() public méthode

public Initialise ( IEnumerable classes ) : void
classes IEnumerable
Résultat void

PropertyModule() public méthode

public PropertyModule ( IDataTypeModule dataTypeModule, IDataTypeService dataTypeService ) : System
dataTypeModule IDataTypeModule
dataTypeService IDataTypeService
Résultat System

VerifyExistingProperty() public méthode

Checks whether a property exists and adds if if it does not. The data type, alias, description and mandatory flag are update for existing properties, but not persisted. Callers should persist the value.
public VerifyExistingProperty ( IContentTypeBase contentType, TabRegistration tab, PropertyInfo item, Type documentClrType, bool &modified ) : PropertyRegistration
contentType IContentTypeBase
tab TabRegistration
item System.Reflection.PropertyInfo
documentClrType System.Type
modified bool
Résultat PropertyRegistration