Share the joy
ObjectContext Vs DbContext:
DbContext
is a wrapper around ObjectContext
, it’s a simplified version of ObjectContext
.
- ObjecetContext is lightweight as compare to DbContext.
- ObjectContext support Model First and Database First approach of Entity Framework (EF) whereas DbContext support Database First, Model First as well as Code First approach
Share the joy