IDBContext Interface

Relativity Custom Pages

Note: This API is now obsolete.

Interface for DBContext class.

Namespace:  Relativity.CustomPages
Assembly:  Relativity.CustomPages (in Relativity.CustomPages.dll) Version: 640db774aa42dfbe1785add27fbb41844ec5c7d4
Syntax

[ObsoleteAttribute("This interface is no longer supported.")]
public interface IDBContext

The IDBContext type exposes the following members.

Properties

  NameDescription
Public propertyDatabase
Gets a database name.
Public propertyServerName
Gets a database server name.
Top
Methods

  NameDescription
Public methodBeginTransaction
Starts a database transaction.
Public methodCancel
Tries to cancel a SQL command execution.
Public methodCommitTransaction
Commits a database transaction.
Public methodExecuteNonQuerySQLStatement(String)
Executes a Transact-SQL statement against the connection and returns the number of rows affected.
Public methodExecuteNonQuerySQLStatement(String, IEnumerable<SqlParameter>)
Executes a parameterized Transact-SQL statement against the connection and returns the number of rows affected.
Public methodExecuteProcedureAsReader
Executes a stored procedure against the connection and builds a DbDataReader.
Public methodExecuteProcedureNonQuery
Executes a stored procedure against the connection and returns the number of rows affected.
Public methodExecuteSqlStatementAsDataSet(String)
Executes a Transact-SQL statement against the connection and returns an in-memory cache of data.
Public methodExecuteSqlStatementAsDataSet(String, IEnumerable<SqlParameter>)
Executes a parameterized Transact-SQL statement against the connection and returns an in-memory cache of data.
Public methodExecuteSqlStatementAsDataTable(String)
Executes a Transact-SQL statement agains the connection and returns a table of in-memory data.
Public methodExecuteSqlStatementAsDataTable(String, IEnumerable<SqlParameter>)
Executes a parameterized Transact-SQL statement against the connection and returns a table of in-memory data.
Public methodExecuteSqlStatementAsDbDataReader(String)
Executes a Transact-SQL statement against the connection and builds a DbDataReader.
Public methodExecuteSqlStatementAsDbDataReader(String, IEnumerable<DbParameter>)
Executes a Transact-SQL statement against the connection and builds a DbDataReader.
Public methodExecuteSqlStatementAsScalar<T>(String)
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.
Public methodExecuteSqlStatementAsScalar<T>(String, IEnumerable<SqlParameter>)
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.
Public methodGetConnection
Gets a database connection.
Public methodGetTransaction
Gets a database transaction.
Public methodReleaseConnection
Releases a database connection.
Public methodRollbackTransaction
Rolls back a database transaction.
Top
See Also

Reference