C# Class Habanero.DB.InsertSqlStatement

This class inherits from SqlStatement and is used for inserting new objects into the database. It is used because it supports the updating of an autoincrementing field.
Inheritance: SqlStatement
Mostra file Open project: Chillisoft/habanero Class Usage Examples

Public Methods

Method Description
InsertSqlStatement ( IDatabaseConnection connection ) : System.Data

Constructor to initialise a new insert sql statement

InsertSqlStatement ( IDatabaseConnection connection, string statement ) : System.Data

Constructor to initialise a new insert sql statement

Private Methods

Method Description
DoAfterExecute ( DatabaseConnection databaseConnection, IDbTransaction transaction, IDbCommand command ) : void

Carries out instructions after execution of the sql statement

Method Details

InsertSqlStatement() public method

Constructor to initialise a new insert sql statement
public InsertSqlStatement ( IDatabaseConnection connection ) : System.Data
connection IDatabaseConnection The database connection used for the statement
return System.Data

InsertSqlStatement() public method

Constructor to initialise a new insert sql statement
public InsertSqlStatement ( IDatabaseConnection connection, string statement ) : System.Data
connection IDatabaseConnection The database connection used for the statement
statement string The statement in string form
return System.Data