94 references to Binary
System.Data.Linq (94)
SqlClient\Common\SqlFactory.cs (12)
95
return
Binary
(SqlNodeType.And, left, right);
107
return
Binary
(SqlNodeType.Or, left, right);
114
result =
Binary
(SqlNodeType.Concat, expressions[i], result);
122
sum =
Binary
(SqlNodeType.Add, expressions[i], sum);
128
return
Binary
(SqlNodeType.Sub, first, second);
134
result =
Binary
(SqlNodeType.Mul, expressions[i], result);
140
return
Binary
(SqlNodeType.Div, first, second);
144
return
Binary
(SqlNodeType.Add, expr, ValueFromObject(second, false, expr.SourceExpression));
148
return
Binary
(SqlNodeType.Sub, expr, ValueFromObject(second, false, expr.SourceExpression));
152
return
Binary
(SqlNodeType.Mul, expr, ValueFromObject(second, false, expr.SourceExpression));
156
return
Binary
(SqlNodeType.Div, expr, ValueFromObject(second, false, expr.SourceExpression));
160
return
Binary
(SqlNodeType.Mod, expr, ValueFromObject(second, false, expr.SourceExpression));
SqlClient\Query\MethodCallConverter.cs (6)
177
return sql.
Binary
(op, left, right);
182
return sql.
Binary
(SqlNodeType.LT, left, right);
184
return sql.
Binary
(SqlNodeType.GT, left, right);
191
SqlExpression lower = sql.
Binary
(SqlNodeType.LT, a, b);
192
SqlExpression equal = sql.
Binary
(SqlNodeType.EQ2V, a, b);
297
return sql.
Binary
(SqlNodeType.EQ, mc.Object, mc.Arguments[0]);
SqlClient\Query\QueryConverter.cs (14)
501
SqlExpression condition = sql.
Binary
(SqlNodeType.EQ, outerKey, innerKey);
530
SqlExpression pred = sql.
Binary
(SqlNodeType.EQ, outerKey, innerKey);
1084
sql.
Binary
(SqlNodeType.Add, (SqlExpression)SqlDuplicator.Copy(skipExp), takeExp),
1089
final.Where = sql.
Binary
(SqlNodeType.GT, rowNumberRef, skipExp);
1131
eqsel.Where = sql.
Binary
(SqlNodeType.EQ2V, aref, dupRef);
1440
SqlExpression any = this.GenerateQuantifier(alias2, sql.
Binary
(SqlNodeType.EQ2V, aref1, aref2), true);
1464
SqlExpression any = this.GenerateQuantifier(alias2, sql.
Binary
(SqlNodeType.EQ2V, aref1, aref2), true);
1577
selElem.Where = sql.
Binary
(SqlNodeType.EQ2V, keyExpr, keyDup);
1806
SqlExpression pred = sql.
Binary
(SqlNodeType.EQ, expr, list[0]);
1808
pred = sql.
Binary
(SqlNodeType.Or, pred, sql.
Binary
(SqlNodeType.EQ, (SqlExpression)SqlDuplicator.Copy(expr), list[i]));
2452
pred = sql.
Binary
(
2460
pred = sql.
Binary
(SqlNodeType.EQ2V, tableAliasRef, itemExpression);
2620
sql.
Binary
(SqlNodeType.GT, this.GetRowCountExpression(), sql.ValueFromObject(0, false, this.dominatingExpression)),
SqlClient\Query\SqlBinder.cs (6)
351
return this.VisitExpression(sql.
Binary
(bo.NodeType, leftDt.Discriminator, rightDt.Discriminator));
455
return this.VisitExpression(sql.
Binary
(SqlNodeType.And, c.Whens[0].Match, c.Whens[0].Value));
458
return this.VisitExpression(sql.
Binary
(SqlNodeType.Or, c.Whens[0].Match, c.Else));
582
return sql.
Binary
(SqlNodeType.EQ, c, sql.ValueFromObject(0, false, uo.SourceExpression));
1585
SqlExpression discriminatorPredicate = sql.
Binary
(SqlNodeType.EQ, clientCase.Expression, clientCase.Whens[i].Match);
1587
elseFilter = sql.AndAccumulate(elseFilter, sql.
Binary
(SqlNodeType.NE, clientCase.Expression, clientCase.Whens[i].Match));
SqlClient\Query\SqlCaseSimplifier.cs (2)
188
rewrite = sql.OrAccumulate(rewrite, sql.
Binary
(SqlNodeType.EQ, discriminator, newWhens[i].Match));
191
rewrite = sql.AndAccumulate(rewrite, sql.
Binary
(SqlNodeType.NE, discriminator, newWhens[i].Match));
SqlClient\Query\SqlMethodCallConverter.cs (35)
767
SqlExpression startIndex = sql.
Binary
(SqlNodeType.Sub, len, sql.ValueFromObject(2, false, source));
950
return sql.
Binary
(SqlNodeType.EQ, mc.Object, mc.Arguments[0]);
1002
return sql.
Binary
(SqlNodeType.Coalesce, mc.Object,
1006
return sql.
Binary
(SqlNodeType.Coalesce, mc.Object, mc.Arguments[0]);
1042
SqlExpression lower = sql.
Binary
(SqlNodeType.LT, a, b);
1043
SqlExpression equal = sql.
Binary
(SqlNodeType.EQ2V, a, b);
1397
return sql.
Binary
(SqlNodeType.Mul, mc.Arguments[0], mc.Arguments[1]);
1399
return sql.
Binary
(SqlNodeType.Div, mc.Arguments[0], mc.Arguments[1]);
1401
return sql.
Binary
(SqlNodeType.Sub, mc.Arguments[0], mc.Arguments[1]);
1403
return sql.
Binary
(SqlNodeType.Add, mc.Arguments[0], mc.Arguments[1]);
1405
return sql.
Binary
(SqlNodeType.Mod, mc.Arguments[0], mc.Arguments[1]);
1480
returnValue = sql.
Binary
(SqlNodeType.EQ2V, mc.Arguments[0], mc.Arguments[1]);
1611
SqlExpression lenZeroExpr = sql.
Binary
(SqlNodeType.EQ, sql.CLRLENGTH(mc.Arguments[0]), sql.ValueFromObject(0, source));
1630
SqlExpression lenZeroExpr = sql.
Binary
(SqlNodeType.EQ, sql.CLRLENGTH(mc.Arguments[0]), sql.ValueFromObject(0, source));
1631
lenZeroExpr = sql.AndAccumulate(lenZeroExpr, sql.
Binary
(SqlNodeType.LE, sql.Add(mc.Arguments[1], 1), sql.CLRLENGTH(mc.Object)));
1653
SqlExpression lenZeroExpr = sql.
Binary
(SqlNodeType.EQ, sql.CLRLENGTH(mc.Arguments[0]), sql.ValueFromObject(0, source));
1654
lenZeroExpr = sql.AndAccumulate(lenZeroExpr, sql.
Binary
(SqlNodeType.LE, sql.Add(mc.Arguments[1], 1), sql.CLRLENGTH(mc.Object)));
1689
SqlExpression notContained = sql.
Binary
(SqlNodeType.EQ, charIndex, sql.ValueFromObject(0, false, source));
1697
SqlExpression lenZeroExpr = sql.
Binary
(SqlNodeType.EQ, sql.CLRLENGTH(mc.Arguments[0]), sql.ValueFromObject(0, source));
1723
SqlExpression notContained = sql.
Binary
(SqlNodeType.EQ, charIndex, sql.ValueFromObject(0, false, source));
1732
SqlExpression lenZeroExpr = sql.
Binary
(SqlNodeType.EQ, sql.CLRLENGTH(mc.Arguments[0]), sql.ValueFromObject(0, source));
1733
lenZeroExpr = sql.AndAccumulate(lenZeroExpr, sql.
Binary
(SqlNodeType.LE, sql.Add(mc.Arguments[1], 1), sql.CLRLENGTH(s)));
1763
SqlExpression notContained = sql.
Binary
(SqlNodeType.EQ, charIndex, sql.ValueFromObject(0, false, source));
1764
notContained = sql.OrAccumulate(notContained, sql.
Binary
(SqlNodeType.LE, elseCase, sql.Subtract(i, count)));
1770
SqlExpression lenZeroExpr = sql.
Binary
(SqlNodeType.EQ, sql.CLRLENGTH(mc.Arguments[0]), sql.ValueFromObject(0, source));
1771
lenZeroExpr = sql.AndAccumulate(lenZeroExpr, sql.
Binary
(SqlNodeType.LE, sql.Add(mc.Arguments[1], 1), sql.CLRLENGTH(s)));
1798
SqlExpression insertingAtEnd = sql.
Binary
(SqlNodeType.EQ, sql.CLRLENGTH(mc.Object), mc.Arguments[0]);
1813
SqlExpression dontChange = sql.
Binary
(SqlNodeType.GE, len2, exprI);
1828
SqlExpression dontChange = sql.
Binary
(SqlNodeType.GE, sql.CLRLENGTH(exprS), exprI);
1845
SqlExpression dontChange = sql.
Binary
(SqlNodeType.GE, sql.CLRLENGTH(exprS), exprI);
1861
SqlExpression dontChange = sql.
Binary
(SqlNodeType.GE, sql.CLRLENGTH(exprS), exprI);
2059
SqlExpression aLower = sql.
Binary
(SqlNodeType.LT, a, b);
2068
SqlExpression aLower = sql.
Binary
(SqlNodeType.LT, a, b);
2108
SqlExpression condition = sql.AndAccumulate(sql.
Binary
(SqlNodeType.EQ, twiceX, round2X), sql.
Binary
(SqlNodeType.NE, x, roundX));
SqlClient\Query\SqlRetyper.cs (1)
84
bo = sql.
Binary
(bo.NodeType, left, right);
SqlClient\Query\Translator.cs (18)
297
select.Where = sql.
Binary
(expr.NodeType, sql.DoNotVisitExpression(eLeft), aref);
305
select.Where = sql.
Binary
(expr.NodeType, sql.DoNotVisitExpression(eRight), aref);
335
return sql.
Binary
(SqlNodeType.EQ, sql.ValueFromObject(0,expr.SourceExpression), sql.ValueFromObject(1,expr.SourceExpression));
369
exp = sql.
Binary
(SqlNodeType.And, exp, eq);
382
return sql.
Binary
(op, left, right);
388
sql.
Binary
(SqlNodeType.Or,
389
sql.
Binary
(SqlNodeType.And,
393
sql.
Binary
(SqlNodeType.And,
394
sql.
Binary
(SqlNodeType.And,
398
sql.
Binary
(eqOp, left, right)
404
return sql.
Binary
(eqOp, left, right);
412
sql.
Binary
(SqlNodeType.Or,
413
sql.
Binary
(SqlNodeType.And,
417
sql.
Binary
(SqlNodeType.And,
418
sql.
Binary
(SqlNodeType.And,
422
sql.
Binary
(eqOp, left, right)
429
return sql.
Binary
(neOp, left, right);
465
exp = sql.
Binary
(combo, exp, compare);