"Maintains a list of objects affected by a business transaction and coordinates the writing out of changes and the resolution of concurrency problems."
"Mediates between the domain and data mapping layers using a collection-like interface for accessing domain objects."
Why do you think it’s useful to apply UoW and the Repository pattern to EF?
I think the DataContext in EF IS a UoW in some way, and an EF entity IS a Repository.
Agree, UoW patter is helpful in a complex scenario with multiple contexts, with different connections.
What do you think about it?
answer here please: