C# 클래스 Subtext.Scripting.Script

Represents a single executable script within the full SQL script.
상속: IScript, ITemplateScript
파일 보기 프로젝트 열기: ayende/Subtext 1 사용 예제들

공개 메소드들

메소드 설명
Execute ( SqlTransaction transaction ) : int

Executes this script.

ParseScripts ( string fullScriptText ) : ScriptCollection

Helper method which given a full SQL script, returns a ScriptCollection of individual TemplateParameter using "GO" as the delimiter.

Script ( string scriptText ) : System

Creates a new TemplateParameter instance.

ToString ( ) : string

Returns the text of the script.

비공개 메소드들

메소드 설명
ApplyTemplateReplacements ( ) : string

메소드 상세

Execute() 공개 메소드

Executes this script.
public Execute ( SqlTransaction transaction ) : int
transaction System.Data.SqlClient.SqlTransaction
리턴 int

ParseScripts() 공개 정적인 메소드

Helper method which given a full SQL script, returns a ScriptCollection of individual TemplateParameter using "GO" as the delimiter.
public static ParseScripts ( string fullScriptText ) : ScriptCollection
fullScriptText string Full script text.
리턴 ScriptCollection

Script() 공개 메소드

Creates a new TemplateParameter instance.
public Script ( string scriptText ) : System
scriptText string Script text.
리턴 System

ToString() 공개 메소드

Returns the text of the script.
public ToString ( ) : string
리턴 string