Andre Lopes
1 min readNov 11, 2019

According to Tom Dykstra in Microsoft docs:

The unit of work class coordinates the work of multiple repositories by creating a single database context class shared by all of them.

So basically is a pattern to wrap your repositories in one place and share the database context across them.

Sure Entity Framework internally implements Unit Of Work and Repository pattern with its DbContext, but the goal of doing it by ourselves is to not be coupled and dependent in Entity Framework.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Written by Andre Lopes

Full-stack developer @ Tesla | Public Speaker | AWS | Terraform | Serverless | Gamer | Eternal Geek 🤓

No responses yet

Write a response