C# Класс Utilities.ORM.Manager.Schema.Manager

Schema manager
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

GenerateSchema() публичный Метод

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
Результат IEnumerable

Manager() публичный Метод

Constructor
public Manager ( IEnumerable SchemaGenerators ) : System
SchemaGenerators IEnumerable The schema generators.
Результат System

Setup() публичный Метод

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.
Результат void

ToString() публичный Метод

Outputs the schema generator information as a string
public ToString ( ) : string
Результат string