Entity Framework QA
Entity Framework QA
4. What is DbContext ?
DbContext is an important class in entity framework.
DbContext is a bridge between entity classes and database.
DbContext is the primary class that is responsible for interacting with the database.
DbContext Savechanges method executes Insert, Update and Delete commands to the
database.
5. What is Dbset ?
The context class derived from DbContext must include the Dbset type properties for the
entities which maps the database table and views.