Search code examples
c#.netautomapperdto

How do I use AutoMapper to populate back to a DataTable?


I'm using AutoMapper which is a great tool.

There's lots of examples converting from DataTable/IDataRead to DTO's but I can't seem to find any that convert the DTO back to a DataTable.

Is this possible? I've tried various things, but I think there's some difficulty with the creation of Rows - as you can't new them up.


Solution

  • I forked it in GIT; Jimmy Bogard may be looking to merge it in during the next major version.

    You can get it here.