C# Класс Subtext.Installation.ScriptHelper

Helper class used to execute SQL Scripts.
Показать файл Открыть проект

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

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

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

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

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

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

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

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

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

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

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

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

Unpacks an embedded script into a Stream.
public static UnpackEmbeddedScript ( string scriptName ) : Stream
scriptName string Name of the script.
Результат System.IO.Stream

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

Unpacks an embedded script into a string.
public static UnpackEmbeddedScriptAsString ( string scriptName ) : string
scriptName string The file name of the script to run.
Результат string