Patterns in Csharp
Repository Pattern
- classes (or components) that encapsulate the logic required to access data sources. (like a sql-db)
- this decouples the technology to access databases (ex. doing it raw, with entity-framewor or with dapper) from the domain layer.