public void AppendSourceAndTargetOperator(SqlQueryBuilder queryBuilder, MemberExpression member, ExpressionType @operator) { // Source AppendAliasMember(queryBuilder, SOURCE_TABLE_ALIAS, member); // Operator queryBuilder.Append(" ") .Append(SqlOperatorTranslator.GetOpertor(@operator)) .Append(" "); // Destination AppendAliasMember(queryBuilder, TARGET_TABLE_ALIAS, member); }
protected override Expression VisitBinary(BinaryExpression node) { //_queryBuilder.Query.Append("("); base.Visit(node.Left); _queryBuilder.Append(" ") .Append(SqlOperatorTranslator.GetOpertor(node.NodeType)) .Append(" "); base.Visit(node.Right); //_queryBuilder.Query.Append(")"); return(node); }