Convert Library from ObjectContext to DbContext
问题 I have a library (based on code found in an old blog post) that allows me to very easily wrap a façade around my data access using Entity Framework. It uses ObjectContext and has performed well enough for my purposes. But now, we are excitedly investigating code first using DbContext and of course would like to reuse / adapt as much of our existing effort as possible. Everything went ok naively converting our Facade enabling library with IObjectContextAdapter until we tried to utilise our