When updating multiple records asynchronously, it is recommended to use ________ to batch operations efficiently.

  • DbContext.BulkUpdate()
  • DbContext.SaveChanges()
  • DbContext.SaveChangesAsync()
  • SaveChangesOptions.Batch
The correct answer is DbContext.SaveChangesAsync(). This method asynchronously saves all changes made in this context to the underlying database.
Add your answer
Loading...

Leave a comment

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