Which component of Entity Framework Core represents a session with the database and can be used to query and save instances of your entities?

  • DbContext
  • DbSet
  • EntityConnection
  • EntitySession
In Entity Framework Core, the component that represents a session with the database and allows you to query and save instances of your entities is the DbContext. DbContext is the entry point for accessing the database and includes methods for querying and interacting with database tables represented as DbSet.
Add your answer
Loading...

Leave a comment

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