When using the repository pattern is it recommended to have one Repository class for each database table? Would I also map one service layer class to one repository class. I’m having a hard time trying to understand how much stuff one repository or service layer class should have.
Thanks!
You should have a single repository for each class that is a root aggregate in your domain.