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

Inheritance: IPropertyModule
Show file Open project: DanMannMann/UmbracoCodeFirst

Public Methods

Method 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

Method 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 method

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
return PropertyRegistration

Initialise() public method

public Initialise ( IEnumerable classes ) : void
classes IEnumerable
return void

PropertyModule() public method

public PropertyModule ( IDataTypeModule dataTypeModule, IDataTypeService dataTypeService ) : System
dataTypeModule IDataTypeModule
dataTypeService IDataTypeService
return System

VerifyExistingProperty() public method

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
return PropertyRegistration