Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
GetConnectionCheckTransaction ( ) : IDbConnection |
public AddParameterWithValue ( IDbCommand command, string name, object value ) : void | ||
command | IDbCommand | The command. |
name | string | The name. |
value | object | The value. |
Результат | void |
public CreateCommand ( string commandText ) : IDbCommand | ||
commandText | string | The command text. |
Результат | IDbCommand |
public Database ( string connectionString ) : System.Data | ||
connectionString | string | The connection string. |
Результат | System.Data |
public Database ( string connectionString, int connectionTimeout ) : System.Data | ||
connectionString | string | The connection string. |
connectionTimeout | int | The connection timeout. |
Результат | System.Data |
public ExecuteNonQuery ( IDbCommand cmd ) : int | ||
cmd | IDbCommand | The CMD. |
Результат | int |
public ExecuteReader ( IDbCommand cmd ) : IDataReader | ||
cmd | IDbCommand | The CMD. |
Результат | IDataReader |
public ExecuteScalar ( IDbCommand cmd ) : object | ||
cmd | IDbCommand | The CMD. |
Результат | object |
public GetConnection ( IDbCommand cmd ) : IDbConnection | ||
cmd | IDbCommand | The CMD. |
Результат | IDbConnection |