示例#1
0
        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));
 }
示例#3
0
 private static bool ContainsOperatorString(QueryCombinationOperation queryCombinationOperation, string leftConstraint)
 {
     return(leftConstraint.Contains(string.Format(" {0} ", queryCombinationOperation._operatorString)));
 }