In Entity Framework, what is a DbSet?

  • A collection-like object representing a table in the database that can be queried and modified
  • A database context class that represents the connection to the database
  • A query language used to retrieve data from the database
  • An attribute used to specify the primary key of an entity class
In Entity Framework, a DbSet represents a collection-like object that corresponds to a table in the database. It allows developers to query and manipulate data in that table using LINQ queries and methods provided by Entity Framework. Each DbSet property in a DbContext represents a specific entity type and corresponds to a table in the underlying database.
Add your answer
Loading...

Leave a comment

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