C# Class Subtext.Installation.ScriptHelper

Helper class used to execute SQL Scripts.
ファイルを表示 Open project: ayende/Subtext

Public Methods

Method Description
ExecuteScript ( ScriptCollection scripts, SqlTransaction transaction ) : void

Executes the script.

Use script.Execute(transaction) to do the work. We will also pull the status of our script exection from here.

ExecuteScript ( ScriptCollection scripts, SqlTransaction transaction, string dbUserName ) : void

Executes the script.

Use script.Execute(transaction) to do the work. We will also pull the status of our script exection from here.

ExecuteScript ( string scriptName, SqlTransaction transaction ) : void

Executes the script.

Use script.Execute(transaction) to do the work. We will also pull the status of our script exection from here.

ExecuteScript ( string scriptName, SqlTransaction transaction, string dbUserName ) : void

Executes the script.

Use script.Execute(transaction) to do the work. We will also pull the status of our script exection from here.

UnpackEmbeddedScript ( string scriptName ) : Stream

Unpacks an embedded script into a Stream.

UnpackEmbeddedScriptAsString ( string scriptName ) : string

Unpacks an embedded script into a string.

Method Details

ExecuteScript() public static method

Executes the script.
Use script.Execute(transaction) to do the work. We will also pull the status of our script exection from here.
public static ExecuteScript ( ScriptCollection scripts, SqlTransaction transaction ) : void
scripts ScriptCollection The collection of scripts to execute.
transaction System.Data.SqlClient.SqlTransaction The current transaction.
return void

ExecuteScript() public static method

Executes the script.
Use script.Execute(transaction) to do the work. We will also pull the status of our script exection from here.
public static ExecuteScript ( ScriptCollection scripts, SqlTransaction transaction, string dbUserName ) : void
scripts ScriptCollection The collection of scripts to execute.
transaction System.Data.SqlClient.SqlTransaction The current transaction.
dbUserName string Name of the DB owner.
return void

ExecuteScript() public static method

Executes the script.
Use script.Execute(transaction) to do the work. We will also pull the status of our script exection from here.
public static ExecuteScript ( string scriptName, SqlTransaction transaction ) : void
scriptName string Name of the script.
transaction System.Data.SqlClient.SqlTransaction The current transaction.
return void

ExecuteScript() public static method

Executes the script.
Use script.Execute(transaction) to do the work. We will also pull the status of our script exection from here.
public static ExecuteScript ( string scriptName, SqlTransaction transaction, string dbUserName ) : void
scriptName string Name of the script.
transaction System.Data.SqlClient.SqlTransaction The current transaction.
dbUserName string Name of the DB owner.
return void

UnpackEmbeddedScript() public static method

Unpacks an embedded script into a Stream.
public static UnpackEmbeddedScript ( string scriptName ) : Stream
scriptName string Name of the script.
return System.IO.Stream

UnpackEmbeddedScriptAsString() public static method

Unpacks an embedded script into a string.
public static UnpackEmbeddedScriptAsString ( string scriptName ) : string
scriptName string The file name of the script to run.
return string