<PackageReference Include="Relativity.Server.CustomPages.SDK" Version="5000.0.2" />

IDBContext

public interface IDBContext
Interface for DBContext class.
string Database { get; }

Gets a database name.

string ServerName { get; }

Gets a database server name.

Starts a database transaction.

void Cancel()

Tries to cancel a SQL command execution.

Commits a database transaction.

int ExecuteNonQuerySQLStatement(string sqlStatement)

Executes a Transact-SQL statement against the connection and returns the number of rows affected.

int ExecuteNonQuerySQLStatement(string sqlStatement, IEnumerable<SqlParameter> parameters)

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.

int ExecuteProcedureNonQuery(string procedureName, IEnumerable<SqlParameter> parameters)

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.

Executes a Transact-SQL statement against the connection and builds a DbDataReader.

Executes a Transact-SQL statement against the connection and builds a DbDataReader.

T ExecuteSqlStatementAsScalar<T>(string sqlStatement)

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.

T ExecuteSqlStatementAsScalar<T>(string sqlStatement, IEnumerable<SqlParameter> parameters)

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.

Releases a database connection.

Rolls back a database transaction.