Exemplo n.º 1
0
 public DbSet <A> _Table <A>() where A : class
 {
     return(_context.Set <A>());
 }
Exemplo n.º 2
0
 //interface implementatie:
 public virtual async Task <IEnumerable <TEntity> > GetAllAsync()
 {
     return(await _context.Set <TEntity>().ToListAsync());
 }