Dependency injection in BAL without adding a project reference to DAL
问题 This is related to question posted here. My Core project has following . public interface IRepository<T> : IDisposable { IQueryable<T> All { get; } IQueryable<T> AllIncluding(params Expression<Func<T, object>>[] includeProperties); TEntity Find(int id); void InsertOrUpdate(T entity); void Delete(int id); void Save(); } public class Customer { public int Id { get; set; } public string FirstName { get; set; } public string LastName { get; set; } } DAL has CustomerContext and CustomerRepository.