Windows Phone 7 Data Resiliency

I would like some recommendations on the best solution for saving data to be used for an application that will work on the desktop (WPF) and on Windows Phone 7, exchanging data between both applications. Ideally, I would like to use the Entity Framework. I reviewed the following technologies:

  • Sync Framework 4.0 is only CTP at the moment, but has the great advantage of being used offline. However, this is an immature structure that does not allow me to use the Entity Framework and, apparently, is not very popular, requiring that the learning process be fair.
  • WCF Data Service - It has the advantage that I can use the Entity Framework. However, it seems that a little lag in data extraction and offline use is a problem.
  • SQL CE synchronized with a centrally hosted database using Sync Framework 2.1 - will work for my WPF application, but not sure about the phone.

There are so many technologies available that it’s hard to β€œsee the forest for trees”. I would like to stay fair mainstream, if possible, to make it easier to get help and find code samples, etc. I am open to any suggestions or recommendations.

0
source share
1 answer

Unfortunately, SQL CE is not supported on the phone, so you need to use one of the other available databases .

Although this is only in CTP format, I recommend taking a look at the Sync Framework. These are your synchronization requirements. Nothing but trivial, you really should avoid reinventing the wheel by creating your own synchronization service.

Even if you used Sync Framework, I do not understand why this will stop you on the Entity Framework on the desktop.

AFAIK there is currently no ORM for WP7, so you need to create your own DAL.

0
source

Source: https://habr.com/ru/post/1384340/


All Articles