public SimpleCrudService(ExampleDbContext dbContext) { _repository = new GenericRepository <T, TKey>(dbContext); }
public CustomerRepository(ExampleDbContext context) { this.context = context; }
public UnitOfWork(ExampleDbContext context) { this.context = context; }
public GenericRepository(ExampleDbContext dbContext) { _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); _dbSet = dbContext.Set <T>(); }