StructureMap - How to register and resolve an open generic type
public interface IRepository<T> where T : Entity { void Delete(T entity); T[] GetAll(); T GetById(int id); void SaveOrUpdate(T enity); void Merge(T entity); } public interface ITeamEmployeeRepository : IRepository<TeamEmployee> { PagedList<TeamEmployee> GetPagedTeamEmployees(int pageIndex, int pageSize); } publ...