How to convert typed DataTable into List of Entity?

Arpit Khandelwal picture Arpit Khandelwal · May 2, 2011 · Viewed 11.2k times · Source

I need to convert the data of a Typed DataTable to List of my entity. I've Mapped all the fields of entity with field of DataTable.

Any ideas?

Answer

Marcus Hammarberg picture Marcus Hammarberg · May 2, 2011

I would check out AutoMapper which is a great tool that focus on these kind of scenarios.

Also here is guy that have done exactly your scenario.

Hope this was helpful!