I use EF 4.1 in a Silverlight project, and for several reasons I use WCF directly and do not use RIA services. Now model objects created by EF can be attached / detached to the datacontext and do not consider it a very good idea to go around different layers, especially for presentation.
I read a little, and I understand that I can create my own classes (Q1. Are these classes called ViewModel classes?), Which have mostly automatic properties and only some logic needed for display and validatoin, and I can use the library as auto- mapper to display back and forth between the EF object and my class (viewmodel ??).
I was wondering if there is a library / utility that I can use to create this class from EF objects? I have more than a few objects with a lot of properties that can change during the development process, and I would not want to manually create these classes and change / maintain them whenever I have to change the objects of the EF model.
I hope it is clear that I ask; if you don’t tell me, and I will try to stop a little more and / or post some examples.
thank
TheOtherGuy
source
share