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

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

Méthodes publiques

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

Méthode Description
GetFileContents ( bool undo = false ) : string

Gets the file contents.

Method Details

ChangeScript() public méthode

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

ChangeScript() public méthode

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

ChangeScript() public méthode

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

GetContent() public méthode

Gets the SQL file update content.
public GetContent ( ) : string
Résultat string

GetUndoContent() public méthode

Gets the SQL file undo content.
public GetUndoContent ( ) : string
Résultat string

ToString() public méthode

Returns a System.String that represents this instance.
public ToString ( ) : string
Résultat string