lundi 9 mai 2016

Repository pattern proper interface when doing upseart in ddd

My question is about the proper interface when identifying a repository, in cases where an Upsert is a main concern in the domain, to offer an intention revealing interfaces should i define the repository to include an Upsert functionality, or this upsertion is not a concern of the domain and can be hidden inside a Create function ?

In other words, does the domain care if a given entity exist or not ?

Aucun commentaire:

Enregistrer un commentaire