Is there a way to map a RowDataCollection to DTO using AutoMapper?
Here is a scenario: DataRow to Object
user.UserId = row["UserId"];
user.UserName = row["UserName"];
Is there a way to map a RowDataCollection to DTO using AutoMapper?
Here is a scenario: DataRow to Object
user.UserId = row["UserId"];
user.UserName = row["UserName"];
glbal.asax configuration
Data row mapper
You could do a custom type converter. And, if you're sure the DTO property names will exactly match the DataRow column names, you could probably do a little reflection and have a single type converter.