C# Class Zetbox.Server.SchemaManagement.SchemaManager

Datei anzeigen Open project: daszat/zetbox Class Usage Examples

Public Methods

Method Description
CheckBaseSchema ( bool withRepair ) : void
CheckSchema ( bool withRepair ) : void
CreateJoinList ( ISchemaProvider db, ObjectClass objClass, IEnumerable relations ) : IList

Creates a list of joins linking objects according to the specified relations list.

Dispose ( ) : void
GetDefaultConstraint ( System.Property prop ) : DefaultConstraint
LoadSavedSchemaInto ( ISchemaProvider provider, IZetboxContext targetCtx ) : void
SchemaManager ( ISchemaProvider provider, IZetboxContext schema, IZetboxContext savedSchema, ZetboxConfig config, IEnumerable globalMigrationFragments, IEnumerable migrationFragments ) : System
UpdateSchema ( ) : void

Private Methods

Method Description
CheckColumn ( TableRef tblName, string colName, System type, int size, int scale, bool isNullable, DefaultConstraint defConstr ) : void
CheckColumns ( ObjectClass objClass, ICollection properties, string prefix ) : void
CheckCompoundObjectCollections ( ObjectClass objClass ) : void
CheckExtraColumns ( ObjectClass objClass ) : void
CheckExtraRelations ( ) : void
CheckExtraTables ( ) : void
CheckIndexConstraints ( ObjectClass objClass ) : void
CheckInheritance ( ) : void
CheckOrderColumn ( TableRef tblName, string fkName, string indexName ) : void
CheckRelations ( ) : void
CheckTableSecurityRules ( ObjectClass objClass ) : void
CheckTables ( ) : void
CheckUpdateRightsTrigger ( ) : void
CheckValueTypeCollections ( ObjectClass objClass ) : void
Check_1_1_RelationColumns ( Relation rel, RelationEnd relEnd, RelationEndRole role ) : void
Check_1_N_RelationColumns ( Relation rel ) : void
Check_N_M_RelationColumns ( Relation rel ) : void
CreateFinalCheckConstraints ( ) : void
CreateFinalRightsInfrastructure ( ) : void
DropVolatileObjects ( ) : void
GetExistingColumnNames ( ObjectClass objClass, ICollection properties, string prefix, List columns ) : void
GetRelationColumnNames ( ObjectClass objClass, List columns ) : void
SaveSchema ( IZetboxContext schema ) : void
UpdateColumns ( ObjectClass objClass, ICollection properties, string prefix ) : void
UpdateConstraints ( ) : void
UpdateDatabaseSchemas ( ) : void
UpdateDeletedColumns ( ObjectClass objClass, string prefix ) : void
UpdateDeletedRelations ( ) : void
UpdateDeletedTables ( ) : void
UpdateIndexConstraints ( ObjectClass objClass ) : void
UpdateInheritance ( ) : void
UpdateProcedures ( ) : void
UpdateRelations ( ) : void
UpdateSecurityTables ( ) : void
UpdateTables ( ) : void
Workaround_UpdateTPHNotNullCheckConstraint ( ) : void
WriteReportHeader ( string reportName ) : void

Method Details

CheckBaseSchema() public method

public CheckBaseSchema ( bool withRepair ) : void
withRepair bool
return void

CheckSchema() public method

public CheckSchema ( bool withRepair ) : void
withRepair bool
return void

CreateJoinList() public static method

Creates a list of joins linking objects according to the specified relations list.
public static CreateJoinList ( ISchemaProvider db, ObjectClass objClass, IEnumerable relations ) : IList
db ISchemaProvider the underlying schema provider
objClass ObjectClass the starting point
relations IEnumerable the relations to follow
return IList

Dispose() public method

public Dispose ( ) : void
return void

GetDefaultConstraint() public static method

public static GetDefaultConstraint ( System.Property prop ) : DefaultConstraint
prop System.Property
return DefaultConstraint

LoadSavedSchemaInto() public static method

public static LoadSavedSchemaInto ( ISchemaProvider provider, IZetboxContext targetCtx ) : void
provider ISchemaProvider
targetCtx IZetboxContext
return void

SchemaManager() public method

public SchemaManager ( ISchemaProvider provider, IZetboxContext schema, IZetboxContext savedSchema, ZetboxConfig config, IEnumerable globalMigrationFragments, IEnumerable migrationFragments ) : System
provider ISchemaProvider
schema IZetboxContext
savedSchema IZetboxContext
config ZetboxConfig
globalMigrationFragments IEnumerable
migrationFragments IEnumerable
return System

UpdateSchema() public method

public UpdateSchema ( ) : void
return void