SOLID principles, Repository pattern and EntityFramework cache in Asp Net Mvc
I have a visual studio solution using solid pattern. I have a IRepository (Crud implementation), IDbFactory (used by a repository), IUnitOfWork. I also have services, who uses repositories to build custom querys and complex database operation. I am using also IoC pattern with Ninject. In a web mvc controller I use only services to access to database. A repository receive a IDbFactory who build a EntityFramework Context. I have some problems: In a service when i have to access to two tables for join them i should use two repositories, calling the GetAll() method of both of them. In this case