tag: programming

Keeping the repository interface clean

on 2015-06-22

The repository pattern is being blamed quite often. The most popular reason for that is an uncontrolled growth of the interface. In the simple scenario we have an interface like this one: public interface IClientRepository { Client Get(int id); IEnumerable<Client> GetAll(); } However models are never that simple and every client might have orders, addresses, contact details, and other nested properties. We don’t want to load our database with unnecessary joins and Entity Framework has a nice tool for that.

#programming

Read more of Keeping the repository interface clean