public T Get(Expression <Func <T, bool> > expression) { return(Connection.GetAll <T>(ExpressionUtils.ParseToWhere <T>(expression.Body)) .FirstOrDefault()); }
public List <T> Query(Expression <Func <T, bool> > expression) { return(Connection.GetAll <T>(ExpressionUtils.ParseToWhere <T>(expression.Body))); }
public void Delete(Expression <Func <T, bool> > expression) { Connection.Delete <T>(ExpressionUtils.ParseToWhere <T>(expression.Body)); }