views:

100

answers:

0

Hi all , I have to integrate SQL server in my project . I use SQL server in the server side , and SQL CE in the client side . I used the EF4 editor , created the model . Then copy the same thing to SQL CE model . Then I generated the data bases and every thing is fine. No , I encounter a problem . The save objects in the two model , but in different data models. When I get an object from the server , then I'm trying to save it on the local data base , it's forbidden , because the local model expect the same object but in the local entity model . Is there any suggestions , how to do that . Any way to deep copy the two objects so I can use the local model easly.

Thanks in advance ...