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

Inheritance: SenseNet.ContentRepository.Storage.Schema.SchemaWriter
Afficher le fichier Open project: maxpavlov/FlexNet

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

Close() public méthode

public Close ( ) : void
Résultat void

CreateContentListType() public méthode

public CreateContentListType ( string name ) : void
name string
Résultat void

CreateNodeType() public méthode

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

CreatePermissionType() public méthode

public CreatePermissionType ( string name ) : void
name string
Résultat void

CreatePropertyType() public méthode

public CreatePropertyType ( string name, DataType dataType, int mapping, bool isContentListProperty ) : void
name string
dataType DataType
mapping int
isContentListProperty bool
Résultat void

DeleteContentListType() public méthode

public DeleteContentListType ( ContentListType contentListType ) : void
contentListType SenseNet.ContentRepository.Storage.Schema.ContentListType
Résultat void

DeleteNodeType() public méthode

public DeleteNodeType ( NodeType nodeType ) : void
nodeType SenseNet.ContentRepository.Storage.Schema.NodeType
Résultat void

DeletePermissionType() public méthode

public DeletePermissionType ( PermissionType permissionType ) : void
permissionType SenseNet.ContentRepository.Storage.Schema.PermissionType
Résultat void

DeletePropertyType() public méthode

public DeletePropertyType ( PropertyType propertyType ) : void
propertyType SenseNet.ContentRepository.Storage.Schema.PropertyType
Résultat void

ModifyNodeType() public méthode

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

Open() public méthode

public Open ( ) : void
Résultat void

RemovePropertyTypeFromPropertySet() public méthode

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

SqlSchemaWriter() public méthode

public SqlSchemaWriter ( ) : System
Résultat System

UpdatePropertyTypeDeclarationState() public méthode

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