When configuring EF Core with ASP.NET Core, which class is typically used to represent the database's context?

  • DbContext
  • DbSet
  • EntityContext
  • DataContext
In EF Core, the class used to represent the database's context is typically named DbContext. This class acts as the entry point for interacting with the database, containing DbSet properties that represent tables and allowing you to define database operations. DbSet represents individual tables, while EntityContext and DataContext are not standard EF Core classes.
Add your answer
Loading...

Leave a comment

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