views:

33

answers:

2

Hi,

Im implementing application in which there is local database which uses SQL CE. Each time app starts there has to be synchronization between local database and server database (to have new values in dictionary tables).

Problem is that mappings are different in sql ce and sql server 2008 when using entity framework.

Is it common problem ? is there any way to automate that ? Do you know about any good pattern ?

thanks for help, bye

+1  A: 

Have you tried ADO.Net Synchronization framework? See here

saurabh
But I want to synchronize only part of tables.
gruber
@potatoMan: Oh, just that? Just point the magic replication gun at them and have at.
Craig Stuntz
A: 

You can use Merge replication, which supports (almost) all SQL Server 2008 datatypes. Issues relating to EF seem to be unrelated, can you elaborate... You must create the model based on a SQL Compact database, you cannot use a model created against a SQL Server database with a SQL Compact database

ErikEJ
So, there is no possibility to use the same model for both databases ?
gruber
No, you will have to use an modified edmx file (at least)
ErikEJ