示例#1
0
 public SimpleCrudService(ExampleDbContext dbContext)
 {
     _repository = new GenericRepository <T, TKey>(dbContext);
 }
 public CustomerRepository(ExampleDbContext context)
 {
     this.context = context;
 }
        public UnitOfWork(ExampleDbContext context)
        {
            this.context = context;

        }
示例#4
0
 public GenericRepository(ExampleDbContext dbContext)
 {
     _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
     _dbSet     = dbContext.Set <T>();
 }