public MyEntitiesController(IMyEntityRepository repository) { _service = new MyEntityService(repository); }
public MyEntityService(IMyEntityRepository repository) : base(repository) { _repository = repository; }
public MyServiceOrController(IMyEntityRepository myEntityRepository) { _myEntityRepository = myEntityRepository; }
public UnitOfWork(IMyEntityRepository myEntityRepository, MyDbContext dbContext) { this.myEntityRepository = myEntityRepository; this.dbContext = dbContext; }