Méthode | Description | |
---|---|---|
AddParameterWithValue ( IDbCommand command, string name, object value ) : void |
Adds the parameter with value to the given command. This is becuase IDbCommand does not include the AddWithValue method.
|
|
BeginTransaction ( ) : void |
Begins a new active transaction.
|
|
Commit ( ) : void |
Commits the active transaction.
|
|
CreateCommand ( string commandText ) : IDbCommand |
Creates the concrete command instance to use with this implementation.
|
|
Database ( ) : System.Data |
Initializes a new instance of the DatabaseAccess class.
|
|
Database ( string connectionString ) : System.Data |
Initializes a new instance of the DatabaseAccess class.
|
|
Database ( string connectionString, int connectionTimeout ) : System.Data |
Initializes a new instance of the DatabaseAccess class.
|
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
ExecuteNonQuery ( IDbCommand cmd ) : int |
Executes the non query
|
|
ExecuteReader ( IDbCommand cmd ) : IDataReader |
Executes the reader.
|
|
ExecuteScalar ( IDbCommand cmd ) : object |
Executes the scalar.
|
|
GetConnection ( ) : IDbConnection |
Gets the connection.
|
|
GetConnection ( IDbCommand cmd ) : IDbConnection |
Gets the connection.
|
|
Rollback ( ) : void |
Rollback the active transaction.
|
Méthode | Description | |
---|---|---|
GetConnectionCheckTransaction ( ) : IDbConnection |
public AddParameterWithValue ( IDbCommand command, string name, object value ) : void | ||
command | IDbCommand | The command. |
name | string | The name. |
value | object | The value. |
Résultat | void |
public CreateCommand ( string commandText ) : IDbCommand | ||
commandText | string | The command text. |
Résultat | IDbCommand |
public Database ( string connectionString ) : System.Data | ||
connectionString | string | The connection string. |
Résultat | System.Data |
public Database ( string connectionString, int connectionTimeout ) : System.Data | ||
connectionString | string | The connection string. |
connectionTimeout | int | The connection timeout. |
Résultat | System.Data |
public ExecuteNonQuery ( IDbCommand cmd ) : int | ||
cmd | IDbCommand | The CMD. |
Résultat | int |
public ExecuteReader ( IDbCommand cmd ) : IDataReader | ||
cmd | IDbCommand | The CMD. |
Résultat | IDataReader |
public ExecuteScalar ( IDbCommand cmd ) : object | ||
cmd | IDbCommand | The CMD. |
Résultat | object |
public GetConnection ( IDbCommand cmd ) : IDbConnection | ||
cmd | IDbCommand | The CMD. |
Résultat | IDbConnection |