This project is read-only.

Support for converting DataReader to custom objects/DTOs

May 27, 2009 at 5:52 AM

Convertion from DataTable to objects is appreciated, do we also have the coversio nfrom DataReader to objects..

Or is such a feature planned?

Aug 20, 2009 at 11:33 AM

Yes, it is almost done. By now DataMapper can convert DataReader to objects but without nested objects. Finding child objects when working with datareader is not a trivial task. I think this task will be done in a few months.


Aug 20, 2009 at 4:41 PM

Great, are you returning IList<T> where T is the DTO/object?

Aug 24, 2009 at 1:14 PM

If you mean methods like FillObjectList they do not return any collection, instead this methods take collection as input parameter and populates it with objects.