C# 클래스 Castle.ActiveRecord.Framework.Internal.ARSchemaCreator

Used to execute a script file to create/update/drop a database schema. Inspired on NHibernate SchemaExport class.
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono

공개 메소드들

메소드 설명
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[]