Skip to main content

Questions tagged [repository-pattern]

Pattern that aims to manage a set of persistent objects or a database by providing an interface that emulates a collection.

1 vote
3 answers
214 views

I'm working on a large Typescript project in NodeJS with Prisma, where we have dozens of domain entities—some with 30+ fields and complex relations. We're using the repository pattern to abstract data ...
biitse's user avatar
  • 21
3 votes
2 answers
2k views

In domain driven design, repositories are created for aggregate roots only. Does this mean that all repository methods should return an instance or a collection of the aggregate root for which the ...
EMN's user avatar
  • 795
2 votes
2 answers
328 views

I’m studying Clean Architecture, and I came across a technical concept in the diagram from chapter 8. In this chapter, the author states that the Financial Data Mapper implements the Financial Data ...
Tozine's user avatar
  • 79
0 votes
1 answer
150 views

I have many repeated parts of service logic which just fetches object if it exists or returns a newly saved one. I want to move it from service because it just clutters up the logic. But I do not ...
DimitrijeCiric's user avatar
3 votes
1 answer
220 views

I am working on a project implemented in DDD style, and I use Repository architecture pattern to persist domain changes. I have multiple roles in domain layer, and that's what raises my question - how ...
lubitelpospat's user avatar
1 vote
4 answers
512 views

Consider the domain entity, Order, which can be persisted by the OrderRepository. Orders maintain state that is stored in the database. However, it does not expose all of it directly. That is, parts ...
STHA's user avatar
  • 71
2 votes
1 answer
384 views

I feel something is wrong with my approach handling MVP and the Repository Pattern. I'm making an album winform app just to practice MVP, crud and the Repos. Pattern. First some code. The model: using ...
Valmont's user avatar
  • 193
3 votes
3 answers
2k views

From many articles and answers on DDD Repository pattern, I got the feeling that a Repository should only CURD an Entity (Aggregate Root) as a whole. Following this convention, we always need to query ...
zwcloud's user avatar
  • 131

15 30 50 per page
1
2 3 4 5
10