Class PocoRowMapper<T>

Assembly: redb.Route.Sql.dll

Maps a row to a POCO of type T
via reflection. Caches property accessors per type for performance.
Supports case-insensitive and snake_case → PascalCase column matching.

public sealed class PocoRowMapper<T> : ISqlRowMapper<T> where T : new()

Inheritance

Object→PocoRowMapper<T>

Implements

Methods

Map(DbDataReader)

Maps the current row of the reader to an object.

public T Map(DbDataReader reader)

Remarks

A column without a writable property is skipped. A value reaches its property only when the conversion is lossless and
unambiguous (see ); a NULL sets a nullable or reference property to null. Anything else —
a NULL for a value type, an overflow, a timestamp without a time zone for a — throws, as
Apache Camel's BeanPropertyRowMapper refuses a type mismatch.