Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IAdoOperations.QueryForObjectDelegate(CommandType, String, RowMapperDelegate) Method

Execute a query with the specified command text, mapping a single result row to an object via a RowMapper.

[Visual Basic]
Public Sub QueryForObjectDelegate( _
   ByVal cmdType As CommandType, _
   ByVal cmdText As String, _
   ByVal rowMapperDelgate As RowMapperDelegate _
)
[C#]
object QueryForObjectDelegate(
   CommandType cmdType,
   string cmdText,
   RowMapperDelegate rowMapperDelgate
);

Parameters

cmdType
The command type.
cmdText
The command text to execute.
rowMapperDelgate
delegate that will map one object per row

Return Value

The single mapped object.

Exceptions

Exception Type Condition
IncorrectResultSizeDataAccessException If the query does not return exactly one row.
DataAccessException If there is any problem executing the query.

See Also

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