IDBContextExecuteSqlStatementAsScalarT Method (String, IEnumerableSqlParameter)

Relativity Custom Pages
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.

Namespace:  Relativity.CustomPages
Assembly:  Relativity.CustomPages (in Relativity.CustomPages.dll) Version: 17.0.1.1 588f15fd7550dbf54835f3417a0142d4ea37dbb5
Syntax

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

Parameters

sqlStatement
Type: SystemString
String containing SQL statement.
parameters
Type: System.Collections.GenericIEnumerableSqlParameter
List of SQL parameters passed in to SQL statement.

Type Parameters

T
Type used to define returned object.

Return Value

Type: T
Returns the first column of the first row in the result set returned by the query.
See Also

Reference