Example #1
0
 List <T> IRepository <T> .GetList(Expression <Func <T, bool> > expression)
 {
     using (KoalaKnowDevEntities kke = this.GetDbContext)
     {
         return(kke.Set <T>().Where(expression).ToList());
     }
 }
Example #2
0
 T IRepository <T> .Get(Expression <Func <T, bool> > predicate)
 {
     using (KoalaKnowDevEntities kke = this.GetDbContext)
     {
         return(kke.Set <T>().FirstOrDefault(predicate));
     }
 }