Lazy Load Injection

Sep 17, 2012 at 6:37 AM

Hello Dennis,

There is Unit of Work Pattern

public interface IUnitOfWork {
    IRepository<Employee> Employees { get; }
    IRepository<TimeCard> TimeCards { get;  }
    void Commit();

It will contain all repositories from aplication. Everything i need to setup is to resolver IUnitOfWork interface and another interfaces will be automatically resolved. But problem here is that i dont need all repos and dont want them even created until i call them. Is there any hack to do that or it is already work in this way?