Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IRowMapper Interface

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 Members .

[Visual Basic]
Public Interface IRowMapper
[C#]
public interface IRowMapper

Remarks

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.

Requirements

Namespace: Spring.Data

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

See Also

IRowMapper Members | Spring.Data Namespace