C# Класс Felinesoft.UmbracoCodeFirst.Core.Modules.PropertyModule

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

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

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

Приватные методы

Метод Описание
IsInheritedProperty ( TabRegistration tab, Type documentClrType, PropertyRegistration property ) : bool
LogPropertySyncInfo ( IContentTypeBase contentType, TabRegistration tab, PropertyRegistration property, string action, [ sourceMethod = null ) : void

Описание методов

CreateProperty() публичный Метод

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
Результат PropertyRegistration

Initialise() публичный Метод

public Initialise ( IEnumerable classes ) : void
classes IEnumerable
Результат void

PropertyModule() публичный Метод

public PropertyModule ( IDataTypeModule dataTypeModule, IDataTypeService dataTypeService ) : System
dataTypeModule IDataTypeModule
dataTypeService IDataTypeService
Результат System

VerifyExistingProperty() публичный Метод

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
Результат PropertyRegistration