Craig's Utility Library
4.0 Beta
|
Schema generator interface More...
Public Member Functions | |
IEnumerable< string > | GenerateSchema (ISource DesiredStructure, ISourceInfo Source) |
Generates a list of commands used to modify the source. If it does not exist prior, the commands will create the source from scratch. Otherwise the commands will only add new fields, tables, etc. It does not delete old fields. More... | |
ISource | GetSourceStructure (ISourceInfo Source) |
Gets the structure of a source More... | |
void | Setup (ListMapping< IDatabase, IMapping > Mappings, IDatabase Database, QueryProvider.Manager QueryProvider, Graph< IMapping > Structure) |
Sets up the specified database schema More... | |
bool | SourceExists (string Source, ISourceInfo Info) |
Checks if a source exists More... | |
bool | StoredProcedureExists (string StoredProcedure, ISourceInfo Source) |
Checks if a stored procedure exists More... | |
bool | TableExists (string Table, ISourceInfo Source) |
Checks if a table exists More... | |
bool | TriggerExists (string Trigger, ISourceInfo Source) |
Checks if a trigger exists More... | |
bool | ViewExists (string View, ISourceInfo Source) |
Checks if a view exists More... | |
Properties | |
string | ProviderName [get] |
Provider name associated with the schema generator More... | |
Schema generator interface
Definition at line 33 of file ISchemaGenerator.cs.
IEnumerable<string> Utilities.ORM.Manager.Schema.Interfaces.ISchemaGenerator.GenerateSchema | ( | ISource | DesiredStructure, |
ISourceInfo | Source | ||
) |
Generates a list of commands used to modify the source. If it does not exist prior, the commands will create the source from scratch. Otherwise the commands will only add new fields, tables, etc. It does not delete old fields.
DesiredStructure | Desired source structure |
Source | Source to use |
Implemented in Utilities.ORM.Manager.Schema.Default.Database.SQLServer.SQLServerSchemaGenerator, and Utilities.ORM.Manager.Schema.Default.LDAP.LDAPSchemaGenerator.
ISource Utilities.ORM.Manager.Schema.Interfaces.ISchemaGenerator.GetSourceStructure | ( | ISourceInfo | Source | ) |
Gets the structure of a source
Source | Source information |
Implemented in Utilities.ORM.Manager.Schema.Default.Database.SQLServer.SQLServerSchemaGenerator, and Utilities.ORM.Manager.Schema.Default.LDAP.LDAPSchemaGenerator.
void Utilities.ORM.Manager.Schema.Interfaces.ISchemaGenerator.Setup | ( | ListMapping< IDatabase, IMapping > | Mappings, |
IDatabase | Database, | ||
QueryProvider.Manager | QueryProvider, | ||
Graph< IMapping > | Structure | ||
) |
Sets up the specified database schema
Mappings | The mappings. |
Database | The database. |
QueryProvider | The query provider. |
Structure | The structure. |
Implemented in Utilities.ORM.Manager.Schema.Default.Database.SQLServer.SQLServerSchemaGenerator, and Utilities.ORM.Manager.Schema.Default.LDAP.LDAPSchemaGenerator.
bool Utilities.ORM.Manager.Schema.Interfaces.ISchemaGenerator.SourceExists | ( | string | Source, |
ISourceInfo | Info | ||
) |
Checks if a source exists
Source | Source to check |
Info | Source info |
Implemented in Utilities.ORM.Manager.Schema.Default.Database.SQLServer.SQLServerSchemaGenerator, and Utilities.ORM.Manager.Schema.Default.LDAP.LDAPSchemaGenerator.
bool Utilities.ORM.Manager.Schema.Interfaces.ISchemaGenerator.StoredProcedureExists | ( | string | StoredProcedure, |
ISourceInfo | Source | ||
) |
Checks if a stored procedure exists
StoredProcedure | Stored procedure to check |
Source | Source information |
Implemented in Utilities.ORM.Manager.Schema.Default.Database.SQLServer.SQLServerSchemaGenerator, and Utilities.ORM.Manager.Schema.Default.LDAP.LDAPSchemaGenerator.
bool Utilities.ORM.Manager.Schema.Interfaces.ISchemaGenerator.TableExists | ( | string | Table, |
ISourceInfo | Source | ||
) |
Checks if a table exists
Table | Table to check |
Source | Source information |
Implemented in Utilities.ORM.Manager.Schema.Default.Database.SQLServer.SQLServerSchemaGenerator, and Utilities.ORM.Manager.Schema.Default.LDAP.LDAPSchemaGenerator.
bool Utilities.ORM.Manager.Schema.Interfaces.ISchemaGenerator.TriggerExists | ( | string | Trigger, |
ISourceInfo | Source | ||
) |
Checks if a trigger exists
Trigger | Trigger to check |
Source | Source information |
Implemented in Utilities.ORM.Manager.Schema.Default.Database.SQLServer.SQLServerSchemaGenerator, and Utilities.ORM.Manager.Schema.Default.LDAP.LDAPSchemaGenerator.
bool Utilities.ORM.Manager.Schema.Interfaces.ISchemaGenerator.ViewExists | ( | string | View, |
ISourceInfo | Source | ||
) |
Checks if a view exists
View | View to check |
Source | Source information |
Implemented in Utilities.ORM.Manager.Schema.Default.Database.SQLServer.SQLServerSchemaGenerator, and Utilities.ORM.Manager.Schema.Default.LDAP.LDAPSchemaGenerator.
|
get |
Provider name associated with the schema generator
Definition at line 38 of file ISchemaGenerator.cs.