What is the primary purpose of the DbContext class in Entity Framework Core?
- Managing database connections and providing a high-level data access API
- Rendering user interfaces
- Handling HTTP requests
- Creating authentication tokens
The DbContext class in Entity Framework Core serves as the bridge between your application code and the database. Its primary purpose is to manage database connections, handle database operations, and provide a high-level data access API for interacting with the database. It abstracts the underlying database operations, making it easier to work with databases in your application.
Loading...
Related Quiz
- The _______ attribute in ASP.NET Core MVC allows you to specify the route pattern directly on the controller or action method.
- Imagine you're developing an ASP.NET Core application on a machine without any internet access. Which tool, among the following, allows you to install NuGet packages from a local feed or folder?
- While exploring a sample ASP.NET Core MVC project, you see a folder named "Controllers." What is the primary responsibility of files within this folder?
- When creating a new ASP.NET Core project, what does the "API" template primarily configure the project for?
- Which feature of EF Core allows developers to execute raw SQL commands directly against the database?