Entity Framework 6 Code First – Is Repository Implementation a Good One?
@Chris Hardie is correct, EF implements UoW out of the box. However many people overlook the fact that EF also implements a generic repository pattern out of the box too: var repos1 = _dbContext.Set<Widget1>(); var repos2 = _dbContext.Set<Widget2>(); var reposN = _dbContext.Set<WidgetN>(); …and this is a pretty good generic repository implementation that is built into … Read more