C# Class Rsdn.Janus.Mssql.MssqlSchemaDriver

Inheritance: DBSchemaDriverBase
Afficher le fichier Open project: rsdn/janus Class Usage Examples

Méthodes publiques

Méthode Description
BeginTableLoad ( IDbConnection connection, TableSchema table ) : void
CreateConnection ( string connStr ) : IDbConnection
CreateDatabase ( string connectionString ) : void
EndTableLoad ( IDbConnection connection, TableSchema table ) : void
LoadExistingSchema ( string connStr ) : DBSchema

Создать схему метаданных из исходной базы

Méthodes protégées

Méthode Description
AfterSchemaComparision ( DBSchema existingSchema, DBSchema targetSchema ) : void
CheckIndexTypeForRecreate ( IndexSchema eIndex ) : bool
CheckKeyTypeForRecreate ( KeySchema eKey ) : bool
DbscCopyPrepare ( DBSchema schema ) : DBSchema
ExecuteDdlCommands ( IEnumerable commands, string connStr ) : void
MakeDdlIndexCreate ( IndexSchema index, TableSchema table ) : string
ParseColumn ( TableColumnSchema column ) : string
ParseColumnAlter ( TableColumnSchema mColumn, TableColumnSchema eColumn ) : string
WriteDdlCommands ( TextWriter wr, IEnumerable commands ) : void

Private Methods

Méthode Description
ConnectToMaster ( string connectionString, string &dbName ) : SqlConnection
TableHasIdentityColumns ( TableSchema table ) : bool

Method Details

AfterSchemaComparision() protected méthode

protected AfterSchemaComparision ( DBSchema existingSchema, DBSchema targetSchema ) : void
existingSchema DBSchema
targetSchema DBSchema
Résultat void

BeginTableLoad() public méthode

public BeginTableLoad ( IDbConnection connection, TableSchema table ) : void
connection IDbConnection
table TableSchema
Résultat void

CheckIndexTypeForRecreate() protected méthode

protected CheckIndexTypeForRecreate ( IndexSchema eIndex ) : bool
eIndex IndexSchema
Résultat bool

CheckKeyTypeForRecreate() protected méthode

protected CheckKeyTypeForRecreate ( KeySchema eKey ) : bool
eKey KeySchema
Résultat bool

CreateConnection() public méthode

public CreateConnection ( string connStr ) : IDbConnection
connStr string
Résultat IDbConnection

CreateDatabase() public méthode

public CreateDatabase ( string connectionString ) : void
connectionString string
Résultat void

DbscCopyPrepare() protected méthode

protected DbscCopyPrepare ( DBSchema schema ) : DBSchema
schema DBSchema
Résultat DBSchema

EndTableLoad() public méthode

public EndTableLoad ( IDbConnection connection, TableSchema table ) : void
connection IDbConnection
table TableSchema
Résultat void

ExecuteDdlCommands() protected méthode

protected ExecuteDdlCommands ( IEnumerable commands, string connStr ) : void
commands IEnumerable
connStr string
Résultat void

LoadExistingSchema() public méthode

Создать схему метаданных из исходной базы
public LoadExistingSchema ( string connStr ) : DBSchema
connStr string
Résultat DBSchema

MakeDdlIndexCreate() protected méthode

protected MakeDdlIndexCreate ( IndexSchema index, TableSchema table ) : string
index IndexSchema
table TableSchema
Résultat string

ParseColumn() protected méthode

protected ParseColumn ( TableColumnSchema column ) : string
column TableColumnSchema
Résultat string

ParseColumnAlter() protected méthode

protected ParseColumnAlter ( TableColumnSchema mColumn, TableColumnSchema eColumn ) : string
mColumn TableColumnSchema
eColumn TableColumnSchema
Résultat string

WriteDdlCommands() protected méthode

protected WriteDdlCommands ( TextWriter wr, IEnumerable commands ) : void
wr System.IO.TextWriter
commands IEnumerable
Résultat void