Last post Jul 13, 2010 10:37 PM by bryanfok
Jul 13, 2010 11:58 AM|bryanfok|LINK
I am using the entity framework in my DAL and have all the POCOs generated by the POCO generator in a common layer.I also have some JSON WCF service in my presentation layer.
The problem I find is that the POCOs could not be serialize by WCF services into "a clean" JSON object because of the extra information (nevigation objects etc.) in the auto. generated POCO.
Is there a solution to my problem?
Currently, I have created DTO object with a mapping method for each of the generated POCO,but this wasn't fun. Is there a better way?
Jul 13, 2010 02:20 PMemail@example.com|LINK
You could use AutoMapper to automatically map object to object from the EF Entities into your DTO's
Jul 13, 2010 10:37 PM|bryanfok|LINK
So the best I could do is to speed up the mapping process?There are no other way to avoid to create DTO even I have those POCO at place?