Beispiel #1
0
 public async Task <int> CountAsync()
 {
     return(await db.Set <TEntity>().AsNoTracking().CountAsync());
 }
Beispiel #2
0
 public EFRepository(EStudyContext _db)
 {
     db    = _db;
     dbSet = db.Set <TEntity>();
 }