jeudi 10 janvier 2019

do these 2 different repository pattern implementations have different names?

A repository pattern can be used as a basic layer for data access. For example, the repo layer would include specialized classes like UserRepo, AccountRepo, etc. And that would be the extent of the pattern implementation.

But the repo pattern can be extended in implementation so that CRUD is performed generically/dynamically/polymorphically using the same CRUD method calls for each entity type. Is there a common way to refer to these different types of repo pattern implementations?

For example, would the first repo pattern I described be referred to as a "basic repository" pattern or a "simple repository" pattern whereas the more advanced repository pattern I described would be referred to as an "abstract repository" pattern, a "polymorphic repository" pattern or something else?

These are 2 distinct repo pattern implementations so it seems that some common terminology should have emerged to simplify communication for discerning between these 2 different implementations.

Aucun commentaire:

Enregistrer un commentaire