C# Class Rock.Migrations.RockMigration3

Custom Migration methods
Inheritance: DbMigration
Mostrar archivo Open project: NewSpring/Rock

Public Methods

Method Description
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.

UpdateBlockTypeAttribute ( string blockTypeGuid, string fieldTypeGuid, string name, string key, string category, string description, int order, string defaultValue, string guid ) : void
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.

Private Methods

Method Description
EnsureEntityTypeExists ( string entityTypeName ) : void

Ensures the entity type exists.

Method Details

AddAttributeValue() public method

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.
return void

AddBlock() public method

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

AddBlockAttributeValue() public method

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.
return void

AddBlockType() public method

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.
return void

AddBlockTypeAttribute() public method

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.
return void

AddDefinedType() public method

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.
return void

AddDefinedValue() public method

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].
return void

AddEntityAttribute() public method

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.
return void

AddGlobalAttribute() public method

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.
return void

AddLayout() public method

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.
return void

AddPage() public method

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.
return void

AddPageContext() public method

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.
return void

AddPageRoute() public method

Adds the page route.
public AddPageRoute ( string pageGuid, string route ) : void
pageGuid string The page GUID.
route string The route.
return void

AddSecurityAuth() public method

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.
return void

AddSecurityRoleGroup() public method

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.
return void

DeleteAttribute() public method

Deletes the attribute.
public DeleteAttribute ( string guid ) : void
guid string The GUID.
return void

DeleteBlock() public method

Deletes the block.
public DeleteBlock ( string guid ) : void
guid string The GUID.
return void

DeleteBlockAttribute() public method

Deletes the block attribute.
public DeleteBlockAttribute ( string guid ) : void
guid string The GUID.
return void

DeleteBlockAttributeValue() public method

Deletes the block attribute value.
public DeleteBlockAttributeValue ( string blockGuid, string attributeGuid ) : void
blockGuid string The block GUID.
attributeGuid string The attribute GUID.
return void

DeleteBlockType() public method

Deletes the type of the block.
public DeleteBlockType ( string guid ) : void
guid string The GUID.
return void

DeleteDefinedType() public method

Deletes the type of the defined.
public DeleteDefinedType ( string guid ) : void
guid string The GUID.
return void

DeleteDefinedValue() public method

Deletes the defined value.
public DeleteDefinedValue ( string guid ) : void
guid string The GUID.
return void

DeleteEntityType() public method

Deletes the type of the entity.
public DeleteEntityType ( string guid ) : void
guid string The GUID.
return void

DeleteFieldType() public method

Deletes the type of the field.
public DeleteFieldType ( string guid ) : void
guid string The GUID.
return void

DeleteLayout() public method

Deletes the page.
public DeleteLayout ( string guid ) : void
guid string The GUID.
return void

DeletePage() public method

Deletes the page.
public DeletePage ( string guid ) : void
guid string The GUID.
return void

DeleteSecurityAuth() public method

Deletes the security auth.
public DeleteSecurityAuth ( string guid ) : void
guid string The GUID.
return void

DeleteSecurityRoleGroup() public method

Deletes the security role group.
public DeleteSecurityRoleGroup ( string guid ) : void
guid string The GUID.
return void

MovePage() public method

Moves the page.
public MovePage ( string pageGuid, string parentPageGuid ) : void
pageGuid string The page GUID.
parentPageGuid string The parent page GUID.
return void

UpdateBlockTypeAttribute() public method

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

UpdateEntityType() public method

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].
return void

UpdateEntityType() public method

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.
return void

UpdateFieldType() public method

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].
return void