Beispiel #1
0
 public async Task <IReadOnlyList <T> > ListAllAsync()
 {
     return(await _pgContext.Set <T>().ToListAsync());
 }
 public Repository(PgDbContext db)
 {
     Db    = db;
     DbSet = db.Set <T>();
 }