C# Class Net.Sf.Dbdeploy.Scripts.ChangeScript

Represents a SQL script to be executed.
Inheritance: Net.Sf.Dbdeploy.Database.UniqueChange
Mostra file Open project: brunomlopes/dbdeploy.net Class Usage Examples

Public Methods

Method Description
ChangeScript ( string folder, int scriptNumber ) : System.Globalization

Initializes a new instance of the ChangeScript class.

ChangeScript ( string folder, int scriptNumber, FileInfo fileInfo, Encoding encoding ) : System.Globalization

Initializes a new instance of the ChangeScript class.

ChangeScript ( string folder, int scriptNumber, string fileName ) : System.Globalization

Initializes a new instance of the ChangeScript class.

GetContent ( ) : string

Gets the SQL file update content.

GetUndoContent ( ) : string

Gets the SQL file undo content.

ToString ( ) : string

Returns a System.String that represents this instance.

Private Methods

Method Description
GetFileContents ( bool undo = false ) : string

Gets the file contents.

Method Details

ChangeScript() public method

Initializes a new instance of the ChangeScript class.
public ChangeScript ( string folder, int scriptNumber ) : System.Globalization
folder string The version folder.
scriptNumber int The script number.
return System.Globalization

ChangeScript() public method

Initializes a new instance of the ChangeScript class.
public ChangeScript ( string folder, int scriptNumber, FileInfo fileInfo, Encoding encoding ) : System.Globalization
folder string The version folder.
scriptNumber int The script number.
fileInfo System.IO.FileInfo The file.
encoding System.Text.Encoding The encoding.
return System.Globalization

ChangeScript() public method

Initializes a new instance of the ChangeScript class.
public ChangeScript ( string folder, int scriptNumber, string fileName ) : System.Globalization
folder string The version folder.
scriptNumber int The script number.
fileName string Name of the file.
return System.Globalization

GetContent() public method

Gets the SQL file update content.
public GetContent ( ) : string
return string

GetUndoContent() public method

Gets the SQL file undo content.
public GetUndoContent ( ) : string
return string

ToString() public method

Returns a System.String that represents this instance.
public ToString ( ) : string
return string