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