From reading various books and articles, I seem to rather often find the usage of the Repository-pattern suggested. I get the point if you need to be able to swap out your d
What people don't realize is that EF is already an Repository and Unit-of-Work.
Repository has become an anti-pattern because the criteria of its usage was never met in the first place. Never use a design pattern because its cool or trendy or trying to build your resume, in fact this should be a standard rule for all design patterns.
Only build a Repository and Unit-of-Work on top of EF if your application is
A good indication is when upgrading from EF5 to EF6 requires you to knock on everybody's door.