C# Class Utilities.ORM.Manager.Schema.Manager

Schema manager
Mostra file Open project: JaCraig/Craig-s-Utility-Library Class Usage Examples

Public Methods

Method Description
GenerateSchema ( ISource DesiredStructure, ISourceInfo Source ) : IEnumerable

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.

Manager ( IEnumerable SchemaGenerators ) : System

Constructor

Setup ( IMapping>.ListMapping Mappings, QueryProvider QueryProvider, IDatabase Database, ISourceInfo Source, Graph Structure ) : void

Sets up the specified databases

ToString ( ) : string

Outputs the schema generator information as a string

Method Details

GenerateSchema() public method

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.
public GenerateSchema ( ISource DesiredStructure, ISourceInfo Source ) : IEnumerable
DesiredStructure ISource Desired source structure
Source ISourceInfo Source to use
return IEnumerable

Manager() public method

Constructor
public Manager ( IEnumerable SchemaGenerators ) : System
SchemaGenerators IEnumerable The schema generators.
return System

Setup() public method

Sets up the specified databases
public Setup ( IMapping>.ListMapping Mappings, QueryProvider QueryProvider, IDatabase Database, ISourceInfo Source, Graph Structure ) : void
Mappings IMapping>.ListMapping The mappings.
QueryProvider QueryProvider The query provider.
Database IDatabase The database.
Source ISourceInfo The source.
Structure Graph The structure.
return void

ToString() public method

Outputs the schema generator information as a string
public ToString ( ) : string
return string