I’m having a quite large database app and trying to be using the repository pattern.
I have 4 interfaces: IProductRepository, IFileRepository …. , and I want to have an combined interface for all 4 which I want to act like an API to other parts of the application.
Must I have a class and type in all the methods of the 4 interfaces, and add interface to that class? Sounds like lots of work. Since each of the 4 have lots of methods I wouldn’t like to type them all once again.
Or how do I solve this in the most clean and nice way?
Yes. This is possible downside to using interfaces.
Only good way to make this bearable is to use some kind of code generation tool. Something like T4.