Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IRowMapper(T) Interface

Generic callback to process each row of data in a result set to an object.

For a list of all members of this type, see IRowMapper(T) Members .

[Visual Basic]
Public Interface IRowMapper(Of T)
public interface IRowMapper<T>


Implementations of this interface perform the actual work of mapping rows, but don't need worry about managing ADO.NET resources, such as closing the reader.

Typically used for AdoTemplate's query methods (with RowMapperResultSetExtractor adapters). RowMapper objects are typically stateless and thus reusable; they are ideal choices for implementing row-mapping logic in a single place.

Alternatively, consider subclassing MappingSqlQuery from the Spring.Data.Object namespace: Instead of working with separate AdoTemplate and RowMapper objects, you can have executable query objects (containing row-mapping logic) there.


Namespace: Spring.Data.Generic

Assembly: Spring.Data (in Spring.Data.dll)

See Also

IRowMapper(T) Members | Spring.Data.Generic Namespace