Generic Repository–Cons
Contents
Generic Repository (something like Repository
- It is not always logical to call behaviours Save, Delete, etc on all repositories
- Support (logging as an example) requires to know what specific repository was invoked, and not just Repository
Just recently I ran into a log with an exception, where operation on …Repositories.Repository`1.Save(T obj…) failed and there was no way to figure out what repository out of 4 different one actually failed save operation.