Ejemplo n.º 1
0
 public async Task AddAsync(TEntity entity, CancellationToken cancellationToken = default) =>
 await _context.Set <TEntity>().AddAsync(entity, cancellationToken);
Ejemplo n.º 2
0
 public IQueryable <TEntity> Get()
 {
     return(_context.Set <TEntity>().AsNoTracking());
 }