Skip to content

Latest commit

 

History

History
executable file
·
8 lines (5 loc) · 486 Bytes

File metadata and controls

executable file
·
8 lines (5 loc) · 486 Bytes

Repository Pattern

Definition

A Repository mediates between the domain and data mapping layers, acting like an in-memory domain object collection. Client objects construct query specifications declaratively and submit them to Repository for satisfaction. Objects can be added to and removed from the Repository, as they can from a simple collection of objects, and the mapping code encapsulated by the Repository will carry out the appropriate operations behind the scenes