locked
Detach Database RRS feed

  • Question

  • We have an app that was built using EF 5.0 dbContext Code First. We would like the app to upload data to Azure using Sync Framework 2.1. It appears that Sync Framework does not support entities so we believe that we will have to detach the database and re-attach outside of EF to do the sync. We're having a problem detaching the database in code. We've tried closing the connection and disposing the context but when we try to attach for upload we get an exception that the database is already attached. Any ideas on how to detach? Any other thoughts on using Sync Framework with entities?


    Donald Hofferber

    Wednesday, March 20, 2013 9:21 PM

All replies

  • duplicate thread for this one: http://social.msdn.microsoft.com/Forums/en-US/syncdevdiscussions/thread/516dbb24-d5ee-4610-a599-d5f65d158c47
    Wednesday, March 20, 2013 11:43 PM