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