What does the DbSet property in a DbContext represent?

  • A collection of entity objects for a specific entity type
  • A connection string to the database
  • A stored procedure
  • A view in the database
The DbSet property in a DbContext represents a collection of entity objects for a specific entity type. It acts as a DbSet that allows you to query, insert, update, and delete records of that entity type in the corresponding database table. It provides a convenient way to work with entities as if they were in-memory objects while abstracting the underlying database operations.
Add your answer
Loading...

Leave a comment

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