Support for converting DataReader to custom objects/DTOs

May 27, 2009 at 4: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?

Coordinator
Aug 20, 2009 at 10: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 3:41 PM

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

Coordinator
Aug 24, 2009 at 12: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.