locked
Entity framework and Local Data cache RRS feed

  • Question

  • I am getting crazy !!!

    I have write a simple application that sync the local data cache database.

    When I use datasets adpter (ADO.NET 2.0) I can sync bydirectionally databases in multiple applications without problems.

    Whan I use Entity framework, the first instance of my application can see the updates, but new instances of my application do not reflect the modifications.

    Probably it's connect with Entity framework cache problem, but I am unable to understand how to proceed.

    Thank you.

     


    Giuseppe
    Saturday, April 2, 2011 5:52 PM

Answers

  • The Sync Framework Hub/Spoke provider (for Local data cache) is modelled after Ado.Net a few years back and since then there are no changes for that model. More efforts were spent on the Peer-Peer model with DbSyncProvider and Later SqlSyncProvider after that. Since the Entity Framework has its own abstractions and object model which will complcate the use of the local data cache, and because this is not tested with Sync Framework team, I would suggest that the sync logic sticks to Ado.Net but you could use Entity model for other business logic. 
    Monday, April 4, 2011 4:56 PM
    Answerer