Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IAdoOperations.QueryWithRowMapper(CommandType, String, IRowMapper) Method

Execute a query given static SQL, mapping each row to a .NET object iva a RowMapper

[Visual Basic]
Public Sub QueryWithRowMapper( _
   ByVal cmdType As CommandType, _
   ByVal cmdText As String, _
   ByVal rowMapper As IRowMapper _
)
[C#]
IList QueryWithRowMapper(
   CommandType cmdType,
   string cmdText,
   IRowMapper rowMapper
);

Parameters

cmdType
The type of command
cmdText
SQL query to execute
rowMapper
object that will map one object per row

Return Value

the result list containing mapped objects

See Also

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