C# 클래스 Subtext.Installation.ScriptHelper

Helper class used to execute SQL Scripts.
파일 보기 프로젝트 열기: ayende/Subtext

공개 메소드들

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