Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IAdoOperations.QueryWithResultSetExtractor(CommandType, String, IResultSetExtractor) Method

Execute a query given IDbCommand's type and text, processing a single result set with an instance of IResultSetExtractor

[Visual Basic]
Public Sub QueryWithResultSetExtractor( _
   ByVal cmdType As CommandType, _
   ByVal cmdText As String, _
   ByVal resultSetExtractor As IResultSetExtractor _
)
[C#]
object QueryWithResultSetExtractor(
   CommandType cmdType,
   string cmdText,
   IResultSetExtractor resultSetExtractor
);

Parameters

cmdType
The type of command
cmdText
The text of the query.
resultSetExtractor
Object that will extract all rows of a result set

Return Value

An arbitrary result object, as returned by the IResultSetExtractor

Exceptions

Exception Type Condition
DataAccessException If there is any problem executing the query.

See Also

IAdoOperations Interface | Spring.Data Namespace | IAdoOperations.QueryWithResultSetExtractor Overload List