C# Class Subtext.Installation.ScriptHelper

Helper class used to execute SQL Scripts.
Afficher le fichier Open project: ayende/Subtext

Méthodes publiques

Méthode 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 méthode

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.
Résultat void

ExecuteScript() public static méthode

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.
Résultat void

ExecuteScript() public static méthode

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.
Résultat void

ExecuteScript() public static méthode

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.
Résultat void

UnpackEmbeddedScript() public static méthode

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

UnpackEmbeddedScriptAsString() public static méthode

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