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

Afficher le fichier Open project: brunomlopes/dbdeploy.net Class Usage Examples

Méthodes publiques

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

Méthode Description
AttachInfoMessageEventHandler ( IDbConnection dbConnection ) : void

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

CreateCommand ( ) : IDbCommand

Method Details

BeginTransaction() public méthode

public BeginTransaction ( ) : void
Résultat void

Close() public méthode

public Close ( ) : void
Résultat void

CommitTransaction() public méthode

public CommitTransaction ( ) : void
Résultat void

Execute() public méthode

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

Execute() public méthode

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

ExecuteQuery() public méthode

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

ExecuteQuery() public méthode

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

InfoMessageEventHandler() public méthode

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

QueryExecuter() public méthode

public QueryExecuter ( DbmsFactory factory ) : System
factory DbmsFactory
Résultat System