Junior EF Core

What is the Unit of Work pattern?

How does DbContext relate to Unit

of Work?

  • Unit of Work maintains a list of operations to be committed as a single transaction.
  • EF Core’s DbContext implements Unit of Work, tracking changes and coordinating

commits (SaveChanges()).

More from Entity Framework Core Tutorial

All questions for this course