I am currently finalizing the architecture of my new application that will be using Entity Framework as its ORM. However, I am a little bit confused with respect to whether I should go with the default option (DbSet
and DbContext
), or use a "tricky" option (ObjectSet
and ObjectContext
)? Do the latter classes offer advantages over the default classes?
There are several posts on this topic which go into detail about your question, and I'm sure you will find helpful:
On DbContext, is it strictly better than ObjectContext?
entity framework 4.1 objectContext vs dbContext
difference between DBContext and Object context in Entity Framework