Example #1
0
 public async Task AddAsync(TEntity entity)
 {
     await _context.Set <TEntity>().AddAsync(entity);
 }
Example #2
0
 public Repository(NiceAuctionContext context)
 {
     _context = context;
     dbSet    = _context.Set <TEntity>();
 }