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

LDAP schema generator More...

Inheritance diagram for Utilities.ORM.Manager.Schema.Default.LDAP.LDAPSchemaGenerator:
Utilities.ORM.Manager.Schema.Interfaces.ISchemaGenerator

Public Member Functions

 LDAPSchemaGenerator (QueryProvider.Manager Provider, SourceProvider.Manager SourceProvider)
 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...
 
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...
 
QueryProvider.Manager Provider [get]
 Query provider object More...
 
SourceProvider.Manager SourceProvider [get]
 Source provider object More...
 
- Properties inherited from Utilities.ORM.Manager.Schema.Interfaces.ISchemaGenerator
string ProviderName [get]
 Provider name associated with the schema generator More...
 

Detailed Description

LDAP schema generator

Definition at line 34 of file LDAPSchema.cs.

Constructor & Destructor Documentation

Utilities.ORM.Manager.Schema.Default.LDAP.LDAPSchemaGenerator.LDAPSchemaGenerator ( QueryProvider.Manager  Provider,
SourceProvider.Manager  SourceProvider 
)

Constructor

Definition at line 39 of file LDAPSchema.cs.

Member Function Documentation

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

Implements Utilities.ORM.Manager.Schema.Interfaces.ISchemaGenerator.

Definition at line 68 of file LDAPSchema.cs.

ISource Utilities.ORM.Manager.Schema.Default.LDAP.LDAPSchemaGenerator.GetSourceStructure ( ISourceInfo  Source)

Gets the structure of a source

Parameters
SourceSource to use
Returns
The source structure

Implements Utilities.ORM.Manager.Schema.Interfaces.ISchemaGenerator.

Definition at line 78 of file LDAPSchema.cs.

void Utilities.ORM.Manager.Schema.Default.LDAP.LDAPSchemaGenerator.Setup ( ListMapping< IDatabase, IMapping Mappings,
IDatabase  Database,
QueryProvider.Manager  QueryProvider,
Graph< IMapping Structure 
)

Sets up the specified database schema

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

Implements Utilities.ORM.Manager.Schema.Interfaces.ISchemaGenerator.

Definition at line 90 of file LDAPSchema.cs.

bool Utilities.ORM.Manager.Schema.Default.LDAP.LDAPSchemaGenerator.SourceExists ( string  Source,
ISourceInfo  Info 
)

Checks if a source exists

Parameters
SourceSource to check
InfoSource info to use
Returns
True if it exists, false otherwise

Implements Utilities.ORM.Manager.Schema.Interfaces.ISchemaGenerator.

Definition at line 100 of file LDAPSchema.cs.

bool Utilities.ORM.Manager.Schema.Default.LDAP.LDAPSchemaGenerator.StoredProcedureExists ( string  StoredProcedure,
ISourceInfo  Source 
)

Checks if a stored procedure exists

Parameters
StoredProcedureStored procedure to check
SourceSource to use
Returns
True if it exists, false otherwise

Implements Utilities.ORM.Manager.Schema.Interfaces.ISchemaGenerator.

Definition at line 111 of file LDAPSchema.cs.

bool Utilities.ORM.Manager.Schema.Default.LDAP.LDAPSchemaGenerator.TableExists ( string  Table,
ISourceInfo  Source 
)

Checks if a table exists

Parameters
TableTable to check
SourceSource to use
Returns
True if it exists, false otherwise

Implements Utilities.ORM.Manager.Schema.Interfaces.ISchemaGenerator.

Definition at line 122 of file LDAPSchema.cs.

bool Utilities.ORM.Manager.Schema.Default.LDAP.LDAPSchemaGenerator.TriggerExists ( string  Trigger,
ISourceInfo  Source 
)

Checks if a trigger exists

Parameters
TriggerTrigger to check
SourceSource to use
Returns
True if it exists, false otherwise

Implements Utilities.ORM.Manager.Schema.Interfaces.ISchemaGenerator.

Definition at line 133 of file LDAPSchema.cs.

bool Utilities.ORM.Manager.Schema.Default.LDAP.LDAPSchemaGenerator.ViewExists ( string  View,
ISourceInfo  Source 
)

Checks if a view exists

Parameters
ViewView to check
SourceSource to use
Returns
True if it exists, false otherwise

Implements Utilities.ORM.Manager.Schema.Interfaces.ISchemaGenerator.

Definition at line 144 of file LDAPSchema.cs.

Property Documentation

QueryProvider.Manager Utilities.ORM.Manager.Schema.Default.LDAP.LDAPSchemaGenerator.Provider
getprotected

Query provider object

Definition at line 53 of file LDAPSchema.cs.

string Utilities.ORM.Manager.Schema.Default.LDAP.LDAPSchemaGenerator.ProviderName
get

Provider name associated with the schema generator

Definition at line 48 of file LDAPSchema.cs.

SourceProvider.Manager Utilities.ORM.Manager.Schema.Default.LDAP.LDAPSchemaGenerator.SourceProvider
getprotected

Source provider object

Definition at line 58 of file LDAPSchema.cs.


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