public WhereClause Combine(WhereClause whereClause, QueryCombinationOperation combinationOperation) { var combinedConstraintString = combinationOperation.Combine(_constraintString, whereClause._constraintString); var combineWhereClause = new WhereClause(combinedConstraintString); combineWhereClause.CommandParameters.AddRange(CommandParameters); combineWhereClause.CommandParameters.AddRange(whereClause.CommandParameters); return combineWhereClause; }
private static bool ContainsOperatorString(QueryCombinationOperation queryCombinationOperation, string leftConstraint) { return leftConstraint.Contains(string.Format(" {0} ", queryCombinationOperation._operatorString)); }
private static bool ContainsOperatorString(QueryCombinationOperation queryCombinationOperation, string leftConstraint) { return(leftConstraint.Contains(string.Format(" {0} ", queryCombinationOperation._operatorString))); }