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.
Add your answer
Loading...

Leave a comment

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