For finer control over transactions, use the DbContext.Database.BeginTransaction() method, which returns a ________.

  • DbContextTransaction
  • DbSet
  • SqlTransaction
  • SqlDatabase
The correct option is 1. DbContextTransaction is the object returned by the BeginTransaction() method, allowing finer control over transactions in Entity Framework. It provides methods to control the transaction's behavior, such as committing or rolling back.
Add your answer
Loading...

Leave a comment

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