C# - Mastering the Basics - The Repository Pattern
There’s a very large number of articles about the repository pattern out there. Nevertheless, most of them overlap in the description and cause confusion among developers. For this reason I decided to write my own article to document my opinion. In this article I will first clarify the what and why of the repository pattern. Afterwards I will explain how the pattern can look like in C#. In his book, Patterns of Enterprise Application Architecture, Martin Fowler describes the Repository Pattern as a “Mediate between the domain and data mapping layers, acting like an in-memory collection of domain objects”. ...