InterviewSolution
Saved Bookmarks
| 1. |
Explain the term dbcontext and dbset. |
|
Answer» DbSet: An entity SET is represented by a DbSet CLASS that can be used for creating, reading, updating, and deleting operations on it. Those DbSet type properties, which map to database tables and views, must be included in the context class (derived from DbContext). DbContext: It is CONSIDERED an ESSENTIAL class in EF API that bridges the gap between an entity or domain class and the database. COMMUNICATION with the database is its primary responsibility. |
|