Example #1
0
 public LookupsService(MoisContext dbContext) => _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
Example #2
0
 public EfRepository(MoisContext dbContext)
 {
     _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
     _dbSet     = _dbContext.Set <TEntity>();
 }