Click here to Skip to main content
16,020,249 members
Articles / Programming Languages / C#

Implementing and Testing Repository Pattern using Entity Framework

Rate me:
Please Sign up or sign in to vote.
3.88/5 (9 votes)
19 Apr 2018CPOL8 min read 19.9K   12  
Investigation of why the Repository Pattern is still useful and the benefits of using it
There are many blog posts and misconceptions about Repository Pattern, especially since the introduction of the OR/M libraries, like Entity Framework. In this article, we will investigate why this pattern is still useful, what are the benefits of using it and how we can use it in combination with Entity Framework. Even though Microsoft defines its DbContext and DbSet classes as a replacement for this pattern, we will see how this pattern still can help us make our code cleaner.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Vega IT Sourcing
Serbia Serbia
Read more at my blog: https://rubikscode.net

Comments and Discussions