C# Class Castle.ActiveRecord.Framework.Internal.ARSchemaCreator

Used to execute a script file to create/update/drop a database schema. Inspired on NHibernate SchemaExport class.
Afficher le fichier Open project: nats/castle-1.0.3-mono

Méthodes publiques

Méthode Description
ARSchemaCreator ( NHibernate.Cfg.Configuration config ) : System

Initializes a new instance of the ARSchemaCreator class.

Execute ( String scriptFileName ) : void

Executes the specified script file.

ExecuteScriptParts ( IDbConnection connection, String parts ) : void

Executes the script parts.

OpenFileAndStripContents ( String scriptFileName ) : String[]

Opens the file and return an array of seperate commands that it contains

Private Methods

Méthode Description
CreateConnectionProperties ( ) : IDictionary
ExecuteScript ( String parts ) : void
Normalize ( string fileName ) : string
SplitString ( String sqlScript, String split ) : String[]

Method Details

ARSchemaCreator() public méthode

Initializes a new instance of the ARSchemaCreator class.
public ARSchemaCreator ( NHibernate.Cfg.Configuration config ) : System
config NHibernate.Cfg.Configuration The config.
Résultat System

Execute() public méthode

Executes the specified script file.
public Execute ( String scriptFileName ) : void
scriptFileName String Name of the script file.
Résultat void

ExecuteScriptParts() public static méthode

Executes the script parts.
public static ExecuteScriptParts ( IDbConnection connection, String parts ) : void
connection IDbConnection The connection.
parts String The parts.
Résultat void

OpenFileAndStripContents() public static méthode

Opens the file and return an array of seperate commands that it contains
public static OpenFileAndStripContents ( String scriptFileName ) : String[]
scriptFileName String Name of the script file.
Résultat String[]