ObjectContext Vs DbContext in EF

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
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.