I use the repository pattern because of the Single Responsibility Principle. I don’t want each individual object to have to know how to save, update, delete itself, when this can be handled by one single generic repository
I use the repository pattern because of the Single Responsibility Principle. I don’t want each individual object to have to know how to save, update, delete itself, when this can be handled by one single generic repository