What is the primary role of DbSet in Entity Framework?
- Executes raw SQL queries against the database.
- Handles database connections and transactions.
- Manages database migrations and schema changes.
- Represents a collection of entities of a specified type in the context.
DbSet in Entity Framework represents a collection of entities of a specified type in the context. It allows developers to perform CRUD operations (Create, Read, Update, Delete) on entities of that type within the context, providing a high-level abstraction over database tables.
Loading...
Related Quiz
- The DataList control provides built-in support for ________ rendering, making it suitable for complex layouts.
- When working with LINQ to Entities, what is an ObjectContext?
- What does LINQ stand for?
- Handling data conflicts in ADO.NET involves strategies like ___________ resolution and ___________ resolution.
- What is distributed transaction management in ADO.NET, and when might it be necessary?