IDBContext
Interface for DBContext class.
Gets a database name.
Gets a database server name.
void BeginTransaction()
Starts a database transaction.
void Cancel()
Tries to cancel a SQL command execution.
void CommitTransaction()
Commits a database transaction.
Executes a Transact-SQL statement against the connection and returns the number of rows affected.
Executes a parameterized Transact-SQL statement against the connection and returns the number of rows affected.
Executes a stored procedure against the connection and builds a DbDataReader.
Executes a stored procedure against the connection and returns the number of rows affected.
Executes a Transact-SQL statement against the connection and returns an in-memory cache of data.
Executes a parameterized Transact-SQL statement against the connection and returns an in-memory cache of data.
Executes a Transact-SQL statement agains the connection and returns a table of in-memory data.
Executes a parameterized Transact-SQL statement against the connection and returns a table of in-memory data.
DbDataReader ExecuteSqlStatementAsDbDataReader(string sqlStatement, IEnumerable<DbParameter> parameters)
Executes a Transact-SQL statement against the connection and builds a DbDataReader.
Executes a Transact-SQL statement against the connection and builds a DbDataReader.
Executes the query, and returns the first column of the first row in the result set returned by the query. Additional columns or rows are ignored.
Executes the query, and returns the first column of the first row in the result set returned by the query. Additional columns or rows are ignored.
Gets a database connection.
Gets a database transaction.
void ReleaseConnection()
Releases a database connection.
void RollbackTransaction()
Rolls back a database transaction.