C# Класс Rock.Migrations.RockMigration2

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

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

Метод Описание
AddAttributeValue ( string attributeGuid, int entityId, string value, string guid ) : void

Adds the attribute value.

AddBlock ( string pageGuid, string layoutGuid, string blockTypeGuid, string name, string zone, string preHtml, string postHtml, int order, string guid ) : void

Adds the block.

AddBlockAttributeValue ( string blockGuid, string attributeGuid, string value ) : void

Adds the block attribute value.

AddBlockType ( string name, string description, string path, string guid ) : void

Adds the type of the block.

AddBlockTypeAttribute ( string blockTypeGuid, string fieldTypeGuid, string name, string key, string category, string description, int order, string defaultValue, string guid ) : void

Adds the block attribute.

AddDefinedType ( string category, string name, string description, string guid ) : void

Adds the type of the defined.

AddDefinedValue ( string definedTypeGuid, string name, string description, string guid, bool isSystem = true ) : void

Adds the defined value.

AddEntityAttribute ( string entityTypeName, string fieldTypeGuid, string entityTypeQualifierColumn, string entityTypeQualifierValue, string name, string category, string description, int order, string defaultValue, string guid ) : void

Adds the entity attribute.

AddGlobalAttribute ( string fieldTypeGuid, string entityTypeQualifierColumn, string entityTypeQualifierValue, string name, string description, int order, string defaultValue, string guid ) : void

Adds a global attribute.

AddLayout ( string siteGuid, string fileName, string name, string description, string guid ) : void

Adds the Layout.

AddPage ( string parentPageGuid, string layoutGuid, string name, string description, string guid, string iconCssClass = "" ) : void

Adds the page.

AddPageContext ( string pageGuid, string entity, string idParameter ) : void

Adds the page context.

AddPageRoute ( string pageGuid, string route ) : void

Adds the page route.

AddSecurityAuth ( string entityTypeName, string action, string groupGuid, string authGuid ) : void

Adds the security auth.

AddSecurityRoleGroup ( string name, string description, string guid ) : void

Adds the security role group.

DeleteAttribute ( string guid ) : void

Deletes the attribute.

DeleteBlock ( string guid ) : void

Deletes the block.

DeleteBlockAttribute ( string guid ) : void

Deletes the block attribute.

DeleteBlockAttributeValue ( string blockGuid, string attributeGuid ) : void

Deletes the block attribute value.

DeleteBlockType ( string guid ) : void

Deletes the type of the block.

DeleteDefinedType ( string guid ) : void

Deletes the type of the defined.

DeleteDefinedValue ( string guid ) : void

Deletes the defined value.

DeleteEntityType ( string guid ) : void

Deletes the type of the entity.

DeleteFieldType ( string guid ) : void

Deletes the type of the field.

DeleteLayout ( string guid ) : void

Deletes the page.

DeletePage ( string guid ) : void

Deletes the page.

DeleteSecurityAuth ( string guid ) : void

Deletes the security auth.

DeleteSecurityRoleGroup ( string guid ) : void

Deletes the security role group.

MovePage ( string pageGuid, string parentPageGuid ) : void

Moves the page.

UpdateEntityType ( string name, string guid, bool isEntity, bool isSecured ) : void

Updates the type of the entity.

UpdateEntityType ( string name, string friendlyName, string assemblyName, bool isEntity, bool isSecured, string guid ) : void

Updates the type of the entity.

UpdateFieldType ( string name, string description, string assembly, string className, string guid, bool IsSystem = true ) : void

Updates the type of the field.

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

Метод Описание
EnsureEntityTypeExists ( string entityTypeName ) : void

Ensures the entity type exists.

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

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

Adds the attribute value.
public AddAttributeValue ( string attributeGuid, int entityId, string value, string guid ) : void
attributeGuid string The attribute GUID.
entityId int The entity id.
value string The value.
guid string The GUID.
Результат void

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

Adds the block.
public AddBlock ( string pageGuid, string layoutGuid, string blockTypeGuid, string name, string zone, string preHtml, string postHtml, int order, string guid ) : void
pageGuid string The page GUID.
layoutGuid string The layout GUID.
blockTypeGuid string The block type GUID.
name string The name.
zone string The zone.
preHtml string The pre HTML.
postHtml string The post HTML.
order int
guid string
Результат void

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

Adds the block attribute value.
public AddBlockAttributeValue ( string blockGuid, string attributeGuid, string value ) : void
blockGuid string The block GUID.
attributeGuid string The attribute GUID.
value string The value.
Результат void

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

Adds the type of the block.
public AddBlockType ( string name, string description, string path, string guid ) : void
name string The name.
description string The description.
path string The path.
guid string The GUID.
Результат void

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

Adds the block attribute.
public AddBlockTypeAttribute ( string blockTypeGuid, string fieldTypeGuid, string name, string key, string category, string description, int order, string defaultValue, string guid ) : void
blockTypeGuid string The block GUID.
fieldTypeGuid string The field type GUID.
name string The name.
key string The key.
category string The category.
description string The description.
order int The order.
defaultValue string The default value.
guid string The GUID.
Результат void

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

Adds the type of the defined.
public AddDefinedType ( string category, string name, string description, string guid ) : void
category string The category.
name string The name.
description string The description.
guid string The GUID.
Результат void

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

Adds the defined value.
public AddDefinedValue ( string definedTypeGuid, string name, string description, string guid, bool isSystem = true ) : void
definedTypeGuid string The defined type GUID.
name string The name.
description string The description.
guid string The GUID.
isSystem bool if set to true [is system].
Результат void

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

Adds the entity attribute.
public AddEntityAttribute ( string entityTypeName, string fieldTypeGuid, string entityTypeQualifierColumn, string entityTypeQualifierValue, string name, string category, string description, int order, string defaultValue, string guid ) : void
entityTypeName string Name of the entity type.
fieldTypeGuid string The field type GUID.
entityTypeQualifierColumn string The entity type qualifier column.
entityTypeQualifierValue string The entity type qualifier value.
name string The name.
category string The category.
description string The description.
order int The order.
defaultValue string The default value.
guid string The GUID.
Результат void

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

Adds a global attribute.
public AddGlobalAttribute ( string fieldTypeGuid, string entityTypeQualifierColumn, string entityTypeQualifierValue, string name, string description, int order, string defaultValue, string guid ) : void
fieldTypeGuid string The field type GUID.
entityTypeQualifierColumn string The entity type qualifier column.
entityTypeQualifierValue string The entity type qualifier value.
name string The name.
description string The description.
order int The order.
defaultValue string The default value.
guid string The GUID.
Результат void

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

Adds the Layout.
public AddLayout ( string siteGuid, string fileName, string name, string description, string guid ) : void
siteGuid string The site GUID.
fileName string Name of the file.
name string The name.
description string The description.
guid string The GUID.
Результат void

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

Adds the page.
public AddPage ( string parentPageGuid, string layoutGuid, string name, string description, string guid, string iconCssClass = "" ) : void
parentPageGuid string The parent page GUID.
layoutGuid string The layout GUID.
name string The name.
description string The description.
guid string The GUID.
iconCssClass string The icon CSS class.
Результат void

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

Adds the page context.
public AddPageContext ( string pageGuid, string entity, string idParameter ) : void
pageGuid string The page GUID.
entity string The entity.
idParameter string The id parameter.
Результат void

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

Adds the page route.
public AddPageRoute ( string pageGuid, string route ) : void
pageGuid string The page GUID.
route string The route.
Результат void

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

Adds the security auth.
public AddSecurityAuth ( string entityTypeName, string action, string groupGuid, string authGuid ) : void
entityTypeName string Name of the entity type.
action string The action.
groupGuid string The group GUID.
authGuid string The auth GUID.
Результат void

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

Adds the security role group.
public AddSecurityRoleGroup ( string name, string description, string guid ) : void
name string The name.
description string The description.
guid string The GUID.
Результат void

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

Deletes the attribute.
public DeleteAttribute ( string guid ) : void
guid string The GUID.
Результат void

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

Deletes the block.
public DeleteBlock ( string guid ) : void
guid string The GUID.
Результат void

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

Deletes the block attribute.
public DeleteBlockAttribute ( string guid ) : void
guid string The GUID.
Результат void

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

Deletes the block attribute value.
public DeleteBlockAttributeValue ( string blockGuid, string attributeGuid ) : void
blockGuid string The block GUID.
attributeGuid string The attribute GUID.
Результат void

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

Deletes the type of the block.
public DeleteBlockType ( string guid ) : void
guid string The GUID.
Результат void

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

Deletes the type of the defined.
public DeleteDefinedType ( string guid ) : void
guid string The GUID.
Результат void

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

Deletes the defined value.
public DeleteDefinedValue ( string guid ) : void
guid string The GUID.
Результат void

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

Deletes the type of the entity.
public DeleteEntityType ( string guid ) : void
guid string The GUID.
Результат void

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

Deletes the type of the field.
public DeleteFieldType ( string guid ) : void
guid string The GUID.
Результат void

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

Deletes the page.
public DeleteLayout ( string guid ) : void
guid string The GUID.
Результат void

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

Deletes the page.
public DeletePage ( string guid ) : void
guid string The GUID.
Результат void

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

Deletes the security auth.
public DeleteSecurityAuth ( string guid ) : void
guid string The GUID.
Результат void

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

Deletes the security role group.
public DeleteSecurityRoleGroup ( string guid ) : void
guid string The GUID.
Результат void

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

Moves the page.
public MovePage ( string pageGuid, string parentPageGuid ) : void
pageGuid string The page GUID.
parentPageGuid string The parent page GUID.
Результат void

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

Updates the type of the entity.
public UpdateEntityType ( string name, string guid, bool isEntity, bool isSecured ) : void
name string The name.
guid string The GUID.
isEntity bool if set to true [is entity].
isSecured bool if set to true [is secured].
Результат void

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

Updates the type of the entity.
public UpdateEntityType ( string name, string friendlyName, string assemblyName, bool isEntity, bool isSecured, string guid ) : void
name string The name.
friendlyName string Name of the friendly.
assemblyName string Name of the assembly.
isEntity bool if set to true [is entity].
isSecured bool if set to true [is secured].
guid string The GUID.
Результат void

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

Updates the type of the field.
public UpdateFieldType ( string name, string description, string assembly, string className, string guid, bool IsSystem = true ) : void
name string The name.
description string The description.
assembly string The assembly.
className string Name of the class.
guid string The GUID.
IsSystem bool if set to true [is system].
Результат void