In Entity Framework, what is a DbContext?
- A class that defines the structure of entities in an application.
- A component responsible for establishing a connection to the database.
- A lightweight representation of a database context.
- An interface for querying and saving data in the database.
In Entity Framework, a DbContext is a lightweight representation of a database context. It represents a session with the database, allowing developers to query and save data. DbContext is part of the Entity Framework Core and provides a high-level abstraction for interacting with the database.
Loading...
Related Quiz
- What does EF stand for in the context of ADO.NET Entity Framework?
- In ADO.NET, what is a data conflict?
- Connection pooling in ADO.NET helps in ___________ database connections for better performance.
- What is the role of the Update method in a DataAdapter?
- In ADO.NET, how can you monitor and manage the connection pool effectively?