Exemple #1
0
 public IEnumerable <T> Find(Expression <Func <T, bool> > predicate)
 {
     return(dbContext.Set <T>().Where(predicate));
 }
Exemple #2
0
 public Repository(ProgramDbContext pb)
 {
     dbContext = pb;
     dbSet     = pb.Set <T>();
 }