Craig's Utility Library  4.0 Beta
Utilities.ORM.Manager.Schema.Manager Class Reference

Schema manager More...

Public Member Functions

 Manager (IEnumerable< ISchemaGenerator > SchemaGenerators)
 Constructor More...
 
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...
 
void Setup (ListMapping< IDatabase, IMapping > Mappings, QueryProvider.Manager QueryProvider, IDatabase Database, ISourceInfo Source, Graph< IMapping > Structure)
 Sets up the specified databases More...
 
override string ToString ()
 Outputs the schema generator information as a string More...
 

Properties

IDictionary< string, ISchemaGeneratorSchemaGenerators [get]
 Schema generators More...
 

Detailed Description

Schema manager

Definition at line 37 of file Manager.cs.

Constructor & Destructor Documentation

Utilities.ORM.Manager.Schema.Manager.Manager ( IEnumerable< ISchemaGenerator SchemaGenerators)

Constructor

Parameters
SchemaGeneratorsThe schema generators.

Definition at line 43 of file Manager.cs.

Member Function Documentation

IEnumerable<string> Utilities.ORM.Manager.Schema.Manager.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.

Parameters
DesiredStructureDesired source structure
SourceSource to use
Returns
List of commands generated

Definition at line 62 of file Manager.cs.

void Utilities.ORM.Manager.Schema.Manager.Setup ( ListMapping< IDatabase, IMapping Mappings,
QueryProvider.Manager  QueryProvider,
IDatabase  Database,
ISourceInfo  Source,
Graph< IMapping Structure 
)

Sets up the specified databases

Parameters
MappingsThe mappings.
QueryProviderThe query provider.
DatabaseThe database.
SourceThe source.
StructureThe structure.

Definition at line 78 of file Manager.cs.

override string Utilities.ORM.Manager.Schema.Manager.ToString ( )

Outputs the schema generator information as a string

Returns
The schema generator information as a string

Definition at line 88 of file Manager.cs.

Property Documentation

IDictionary<string, ISchemaGenerator> Utilities.ORM.Manager.Schema.Manager.SchemaGenerators
getprotected

Schema generators

Definition at line 52 of file Manager.cs.


The documentation for this class was generated from the following file: