C# Class Net.Sf.Dbdeploy.Database.QueryExecuter

Datei anzeigen Open project: brunomlopes/dbdeploy.net Class Usage Examples

Public Methods

Method Description
BeginTransaction ( ) : void
Close ( ) : void
CommitTransaction ( ) : void
Execute ( string sql ) : void

Executes the specified SQL.

Execute ( string sql, StringBuilder output ) : void

Executes the specified SQL.

ExecuteQuery ( string sql ) : IDataReader

Executes the query.

ExecuteQuery ( string sql, StringBuilder output ) : IDataReader

Executes the query.

InfoMessageEventHandler ( object sender, EventArgs args ) : void

Triggered when a message is received from the query execution.

QueryExecuter ( DbmsFactory factory ) : System

Private Methods

Method Description
AttachInfoMessageEventHandler ( IDbConnection dbConnection ) : void

Attaches the info message event handler to the connection if possible.

CreateCommand ( ) : IDbCommand

Method Details

BeginTransaction() public method

public BeginTransaction ( ) : void
return void

Close() public method

public Close ( ) : void
return void

CommitTransaction() public method

public CommitTransaction ( ) : void
return void

Execute() public method

Executes the specified SQL.
public Execute ( string sql ) : void
sql string The SQL to run.
return void

Execute() public method

Executes the specified SQL.
public Execute ( string sql, StringBuilder output ) : void
sql string The SQL to run.
output StringBuilder The output from the running of the script..
return void

ExecuteQuery() public method

Executes the query.
public ExecuteQuery ( string sql ) : IDataReader
sql string The SQL to run.
return IDataReader

ExecuteQuery() public method

Executes the query.
public ExecuteQuery ( string sql, StringBuilder output ) : IDataReader
sql string The SQL to run.
output StringBuilder The output of the SQL execution.
return IDataReader

InfoMessageEventHandler() public method

Triggered when a message is received from the query execution.
public InfoMessageEventHandler ( object sender, EventArgs args ) : void
sender object The sender.
args System.EventArgs The args.
return void

QueryExecuter() public method

public QueryExecuter ( DbmsFactory factory ) : System
factory DbmsFactory
return System