Map two different class structres [Resolved]

Posted by Toashish80 under C# on 12/23/2011 | Points: 10 | Views : 867 | Status : [Member] | Replies : 2
I have two set of classes each with different structures. I want to write a mapper class through which I can map the source structure to a target structure. During the execution, I would instantiate the mapper class and specify the source and target objects.

Can any one provide any ideas on that?




Responses

Posted by: Rajnilari2015 on: 10/10/2016 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
Hi , the answer is AutoMapper. We have written an article on the same http://www.dotnetfunda.com/articles/show/3274/map-domain-objects-using-automapper that address the same problem of yours. Kindly let us know if that helps.

Thanks.

--
Thanks & Regards,
RNA Team

Toashish80, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Manicse on: 10/11/2016 [Member] Bronze | Points: 25

Up
0
Down
That question raised on 2011. May be that time AutoMapper was not that famous.

Mani.R

Toashish80, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response