Example #1
0
 public List <T> GetList()
 {
     using (var db = new WebContextDb())
     {
         return(db.Set <T>().ToList());
     }
 }
Example #2
0
 public T GetById(Expression <Func <T, bool> > match)
 {
     {
         return(db.Set <T>().FirstOrDefault(match));
     }
 }