Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IAdoOperations.QueryWithResultSetExtractor(CommandType, String, IResultSetExtractor, ICommandSetter) Method

Execute a query given IDbCommand's type and text with parameters set via the command setter, 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, _
   ByVal commandSetter As ICommandSetter _
)
[C#]
object QueryWithResultSetExtractor(
   CommandType cmdType,
   string cmdText,
   IResultSetExtractor resultSetExtractor,
   ICommandSetter commandSetter
);

Parameters

cmdType
The command type.
cmdText
The command text to execute.
resultSetExtractor
The result set extractor.
commandSetter
The command setter.

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