C# Class SenseNet.ContentRepository.Storage.Data.SqlClient.SqlSchemaWriter

Inheritance: SenseNet.ContentRepository.Storage.Schema.SchemaWriter
Mostra file Open project: maxpavlov/FlexNet

Public Methods

Method Description
AddPropertyTypeToPropertySet ( PropertyType propertyType, PropertySet owner, bool isDeclared ) : void
Close ( ) : void
CreateContentListType ( string name ) : void
CreateNodeType ( NodeType parent, string name, string className ) : void
CreatePermissionType ( string name ) : void
CreatePropertyType ( string name, DataType dataType, int mapping, bool isContentListProperty ) : void
DeleteContentListType ( ContentListType contentListType ) : void
DeleteNodeType ( NodeType nodeType ) : void
DeletePermissionType ( PermissionType permissionType ) : void
DeletePropertyType ( PropertyType propertyType ) : void
ModifyNodeType ( NodeType nodeType, NodeType parent, string className ) : void
Open ( ) : void
RemovePropertyTypeFromPropertySet ( PropertyType propertyType, PropertySet owner ) : void
SqlSchemaWriter ( ) : System
UpdatePropertyTypeDeclarationState ( PropertyType propertyType, NodeType owner, bool isDeclared ) : void

Private Methods

Method Description
AddScript ( StringBuilder sb ) : void
CreateCommentLine ( ) : string
DeclareIntVariable ( StringBuilder scriptBuilder, string name ) : void
ExecuteScripts ( List scripts ) : void
GetSqlScript ( ) : string
WriteDeletePropertyScript ( StringBuilder scriptBuilder, int nodeTypeId, int propertyTypeId, string tableName, string tableIdColumn, string comment ) : void
WriteInsertScript ( StringBuilder scriptBuilder, string tableName, string comment ) : void
WriteResetPropertyScript ( StringBuilder scriptBuilder, PropertySet nodeType, PropertyType slot ) : void
WriteResetPropertySlotScript ( StringBuilder scriptBuilder, int nodeTypeId, int mapping, string columnPrefix, int mappingPageSize, string comment ) : void
WriteSlotsToResetScripts ( StringBuilder scriptBuilder, Dictionary slotsToReset ) : void
WriteUpdateScript ( StringBuilder scriptBuilder, string tableName, string whereClause, string comment ) : void

Method Details

AddPropertyTypeToPropertySet() public method

public AddPropertyTypeToPropertySet ( PropertyType propertyType, PropertySet owner, bool isDeclared ) : void
propertyType SenseNet.ContentRepository.Storage.Schema.PropertyType
owner SenseNet.ContentRepository.Storage.Schema.PropertySet
isDeclared bool
return void

Close() public method

public Close ( ) : void
return void

CreateContentListType() public method

public CreateContentListType ( string name ) : void
name string
return void

CreateNodeType() public method

public CreateNodeType ( NodeType parent, string name, string className ) : void
parent SenseNet.ContentRepository.Storage.Schema.NodeType
name string
className string
return void

CreatePermissionType() public method

public CreatePermissionType ( string name ) : void
name string
return void

CreatePropertyType() public method

public CreatePropertyType ( string name, DataType dataType, int mapping, bool isContentListProperty ) : void
name string
dataType DataType
mapping int
isContentListProperty bool
return void

DeleteContentListType() public method

public DeleteContentListType ( ContentListType contentListType ) : void
contentListType SenseNet.ContentRepository.Storage.Schema.ContentListType
return void

DeleteNodeType() public method

public DeleteNodeType ( NodeType nodeType ) : void
nodeType SenseNet.ContentRepository.Storage.Schema.NodeType
return void

DeletePermissionType() public method

public DeletePermissionType ( PermissionType permissionType ) : void
permissionType SenseNet.ContentRepository.Storage.Schema.PermissionType
return void

DeletePropertyType() public method

public DeletePropertyType ( PropertyType propertyType ) : void
propertyType SenseNet.ContentRepository.Storage.Schema.PropertyType
return void

ModifyNodeType() public method

public ModifyNodeType ( NodeType nodeType, NodeType parent, string className ) : void
nodeType SenseNet.ContentRepository.Storage.Schema.NodeType
parent SenseNet.ContentRepository.Storage.Schema.NodeType
className string
return void

Open() public method

public Open ( ) : void
return void

RemovePropertyTypeFromPropertySet() public method

public RemovePropertyTypeFromPropertySet ( PropertyType propertyType, PropertySet owner ) : void
propertyType SenseNet.ContentRepository.Storage.Schema.PropertyType
owner SenseNet.ContentRepository.Storage.Schema.PropertySet
return void

SqlSchemaWriter() public method

public SqlSchemaWriter ( ) : System
return System

UpdatePropertyTypeDeclarationState() public method

public UpdatePropertyTypeDeclarationState ( PropertyType propertyType, NodeType owner, bool isDeclared ) : void
propertyType SenseNet.ContentRepository.Storage.Schema.PropertyType
owner SenseNet.ContentRepository.Storage.Schema.NodeType
isDeclared bool
return void