예제 #1
0
 public T Get(Expression <Func <T, bool> > expression)
 {
     return(Connection.GetAll <T>(ExpressionUtils.ParseToWhere <T>(expression.Body))
            .FirstOrDefault());
 }
예제 #2
0
 public List <T> Query(Expression <Func <T, bool> > expression)
 {
     return(Connection.GetAll <T>(ExpressionUtils.ParseToWhere <T>(expression.Body)));
 }
예제 #3
0
 public void Delete(Expression <Func <T, bool> > expression)
 {
     Connection.Delete <T>(ExpressionUtils.ParseToWhere <T>(expression.Body));
 }