IDBContext.ExecuteSqlStatementAsScalar<T> Method (String)

Relativity API
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.API
Assembly:  Relativity.API (in Relativity.API.dll) Version: 640db774aa42dfbe1785add27fbb41844ec5c7d4
Syntax

T ExecuteSqlStatementAsScalar<T>(
	string sqlStatement
)

Parameters

sqlStatement
Type: System.String
String containing 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