Tag Archives: repository

Repository Pattern

In Martin Fowler’s Patterns of Enterprise Application Architecture (PoEAA) defined Repository pattern as follows: “Mediates between the domain and data mapping layers using a collection-like interface for accessing domain objects.”  We can explain it as follows: The repository mediates between the data source layer and the business layers of the application. It queries the data… Read More »

Shopping Cart Application Part-07 (Repository contracts)

@In my previous post I discussed about Product Catalog. @. Now I will create Repository interfaces. @. These interfaces actually act like contracts with their implementations. @. They will also specify what will must implement by a concrete class (that implements the interface) @. In our Product catalog we defined three entities as Aggregate Root… Read More »