C# 클래스 Zetbox.Server.SchemaManagement.SchemaManager

파일 보기 프로젝트 열기: daszat/zetbox 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

CheckBaseSchema() 공개 메소드

public CheckBaseSchema ( bool withRepair ) : void
withRepair bool
리턴 void

CheckSchema() 공개 메소드

public CheckSchema ( bool withRepair ) : void
withRepair bool
리턴 void

CreateJoinList() 공개 정적인 메소드

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
리턴 IList

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

GetDefaultConstraint() 공개 정적인 메소드

public static GetDefaultConstraint ( System.Property prop ) : DefaultConstraint
prop System.Property
리턴 DefaultConstraint

LoadSavedSchemaInto() 공개 정적인 메소드

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

SchemaManager() 공개 메소드

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
리턴 System

UpdateSchema() 공개 메소드

public UpdateSchema ( ) : void
리턴 void