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