C# Класс Castle.ActiveRecord.Framework.Internal.ARSchemaCreator

Used to execute a script file to create/update/drop a database schema. Inspired on NHibernate SchemaExport class.
Показать файл Открыть проект

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

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

Приватные методы

Метод Описание
CreateConnectionProperties ( ) : IDictionary
ExecuteScript ( String parts ) : void
Normalize ( string fileName ) : string
SplitString ( String sqlScript, String split ) : String[]

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

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

Initializes a new instance of the ARSchemaCreator class.
public ARSchemaCreator ( NHibernate.Cfg.Configuration config ) : System
config NHibernate.Cfg.Configuration The config.
Результат System

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

Executes the specified script file.
public Execute ( String scriptFileName ) : void
scriptFileName String Name of the script file.
Результат void

ExecuteScriptParts() публичный статический Метод

Executes the script parts.
public static ExecuteScriptParts ( IDbConnection connection, String parts ) : void
connection IDbConnection The connection.
parts String The parts.
Результат void

OpenFileAndStripContents() публичный статический Метод

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