In LINQ to Entities, what is the primary purpose of the DbContext class?

  • Handles database connection and authentication
  • Provides metadata about the database schema
  • Represents a collection of database entities
  • Represents a session with the database and provides CRUD operations on entities
In LINQ to Entities, the DbContext class serves as a bridge between the domain classes (entities) in the application and the database. It represents a session with the database and provides CRUD (Create, Read, Update, Delete) operations on entities, allowing developers to interact with the database using object-oriented principles.
Add your answer
Loading...

Leave a comment

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