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.
Mostrar archivo Open project: nats/castle-1.0.3-mono

Public Methods

Method 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

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

Method Details

ARSchemaCreator() public method

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

Execute() public method

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

ExecuteScriptParts() public static method

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

OpenFileAndStripContents() public static method

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.
return String[]