IDBContextExecuteSQLStatementAsEnumerableT Method

Relativity API
Executes a Transact-SQL statement against the connection and returns the result as an IEnumerableT using the converter delegate.

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

IEnumerable<T> ExecuteSQLStatementAsEnumerable<T>(
	string sqlStatement,
	Func<SqlDataReader, T> converter,
	int timeout = -1
)

Parameters

sqlStatement
Type: SystemString
String containing parameterized SQL statement.
converter
Type: SystemFuncSqlDataReader, T
Delegate to retrieve item from SqlDataReader
timeout (Optional)
Type: SystemInt32
A timeout value in seconds for the query

Type Parameters

T

Return Value

Type: IEnumerableT
Returns an IEnumerableT.
See Also

Reference