187 references to Operators
System.Data (187)
fx\src\data\System\Data\Filter\BinaryNode.cs (49)
74
if (op ==
Operators
.Is) {
78
if (un.op !=
Operators
.Not) {
81
op =
Operators
.IsNot;
85
if (((ZeroOpNode)right).op !=
Operators
.Null) {
103
return new ZeroOpNode(
Operators
.Null);
108
return new ZeroOpNode(
Operators
.True);
110
return new ZeroOpNode(
Operators
.False);
167
if (op ==
Operators
.EqualTo || op ==
Operators
.NotEqual) {
201
if (op ==
Operators
.EqualTo || op ==
Operators
.NotEqual) {
250
if (op !=
Operators
.Or && op !=
Operators
.And && op !=
Operators
.In && op !=
Operators
.Is && op !=
Operators
.IsNot) {
295
case
Operators
.Plus:
396
case
Operators
.Minus:
484
case
Operators
.Multiply:
550
case
Operators
.Divide:
616
case
Operators
.EqualTo:
620
return(0 == BinaryCompare (vLeft, vRight, resultType,
Operators
.EqualTo));
622
case
Operators
.GreaterThen:
628
case
Operators
.LessThen:
634
case
Operators
.GreaterOrEqual:
640
case
Operators
.LessOrEqual:
646
case
Operators
.NotEqual:
652
case
Operators
.Is:
659
case
Operators
.IsNot:
666
case
Operators
.And:
712
case
Operators
.Or:
782
case
Operators
.Modulo:
813
case
Operators
.In:
845
if (0 == BinaryCompare(vLeft, vRight, resultType,
Operators
.EqualTo)) {
1004
if ((left == StorageType.Guid) && (right == StorageType.Guid) &&
Operators
.IsRelational(op))
1006
if ((left == StorageType.String) && (right == StorageType.Guid) &&
Operators
.IsRelational(op))
1008
if ((left == StorageType.Guid) && (right == StorageType.String) &&
Operators
.IsRelational(op))
1021
if (
Operators
.IsLogical(op)){
1032
if (
Operators
.IsRelational(op) && left == StorageType.DateTimeOffset && right == StorageType.DateTimeOffset)
1037
if ((op ==
Operators
.Plus) && ((left == StorageType.String) || (right == StorageType.String)))
1044
if (
Operators
.IsArithmetical(op)) {
1055
if ((op ==
Operators
.Divide) && IsInteger(result)) {
1093
if (
Operators
.IsLogical(op)){
1101
if (op ==
Operators
.Plus){
1123
if (op ==
Operators
.Plus || op ==
Operators
.Minus){
1131
if (!
Operators
.IsRelational(op))
1144
if (
Operators
.IsArithmetical(op)) {
1154
if ((op ==
Operators
.Divide) && IsIntegerSql(result)) {
fx\src\data\System\Data\Filter\ExpressionParser.cs (83)
67
new ReservedWords("And", Tokens.BinaryOp,
Operators
.And),
73
new ReservedWords("Between", Tokens.BinaryOp,
Operators
.Between),
75
new ReservedWords("Child", Tokens.Child,
Operators
.Noop),
76
new ReservedWords("False", Tokens.ZeroOp,
Operators
.False),
77
new ReservedWords("In", Tokens.BinaryOp,
Operators
.In),
78
new ReservedWords("Is", Tokens.BinaryOp,
Operators
.Is),
79
new ReservedWords("Like", Tokens.BinaryOp,
Operators
.Like),
80
new ReservedWords("Not", Tokens.UnaryOp,
Operators
.Not),
81
new ReservedWords("Null", Tokens.ZeroOp,
Operators
.Null),
82
new ReservedWords("Or", Tokens.BinaryOp,
Operators
.Or),
83
new ReservedWords("Parent", Tokens.Parent,
Operators
.Noop),
84
new ReservedWords("True", Tokens.ZeroOp,
Operators
.True),
104
internal int op =
Operators
.Noop;
148
op =
Operators
.Noop;
153
ops[topOperator++] = new OperatorInfo(Nodes.Noop,
Operators
.Noop,
Operators
.priStart);
188
BuildExpression(
Operators
.priLow);
216
if (opInfo.type == Nodes.Binop && opInfo.op ==
Operators
.In && token != Tokens.Parent) {
314
if (opInfo.type == Nodes.Binop && opInfo.op ==
Operators
.In) {
320
ops[topOperator++] = new OperatorInfo(Nodes.Call,
Operators
.Noop,
Operators
.priParen);
324
ops[topOperator++] = new OperatorInfo(Nodes.Paren,
Operators
.Noop,
Operators
.priParen);
331
BuildExpression(
Operators
.priProc);
359
ops[topOperator++] = new OperatorInfo(Nodes.Call,
Operators
.Noop,
Operators
.priParen);
367
BuildExpression(
Operators
.priLow);
385
Debug.Assert(opInfo.priority ==
Operators
.priParen, "melformed operator stack.");
407
node = new UnaryNode(_table,
Operators
.Noop, node);
426
BuildExpression(
Operators
.priLow);
451
if (op ==
Operators
.Plus) {
452
op =
Operators
.UnaryPlus;
455
else if (op ==
Operators
.Minus) {
457
op =
Operators
.Negative;
462
throw ExprException.MissingOperandBefore(
Operators
.ToString(op));
472
BuildExpression(
Operators
.Priority(op));
475
ops[topOperator++] = new OperatorInfo(Nodes.Binop, op,
Operators
.Priority(op));
483
ops[topOperator++] = new OperatorInfo(Nodes.Unop, op,
Operators
.Priority(op));
494
ops[topOperator++] = new OperatorInfo(Nodes.Zop, op,
Operators
.priMax);
626
Debug.Assert(pri >
Operators
.priStart && pri <=
Operators
.priMax, "Invalid priority value");
652
case
Operators
.Between:
653
case
Operators
.BetweenAnd:
654
case
Operators
.BitwiseAnd:
655
case
Operators
.BitwiseOr:
656
case
Operators
.BitwiseXor:
657
case
Operators
.BitwiseNot:
660
case
Operators
.Is: //
661
case
Operators
.Or:
662
case
Operators
.And:
663
case
Operators
.EqualTo:
664
case
Operators
.NotEqual:
665
case
Operators
.Like:
666
case
Operators
.LessThen:
667
case
Operators
.LessOrEqual:
668
case
Operators
.GreaterThen:
669
case
Operators
.GreaterOrEqual:
670
case
Operators
.In:
674
Debug.Assert(opInfo.op ==
Operators
.Plus ||
675
opInfo.op ==
Operators
.Minus ||
676
opInfo.op ==
Operators
.Multiply ||
677
opInfo.op ==
Operators
.Divide ||
678
opInfo.op ==
Operators
.Modulo,
686
if (opInfo.op ==
Operators
.Like) {
703
case
Operators
.Not:
706
case
Operators
.BitwiseNot:
709
case
Operators
.Negative:
753
op =
Operators
.Noop;
787
op =
Operators
.EqualTo;
795
op =
Operators
.GreaterOrEqual;
798
op =
Operators
.GreaterThen;
805
op =
Operators
.LessOrEqual;
809
op =
Operators
.NotEqual;
812
op =
Operators
.LessThen;
817
op =
Operators
.Plus;
822
op =
Operators
.Minus;
827
op =
Operators
.Multiply;
832
op =
Operators
.Divide;
837
op =
Operators
.Modulo;
843
op =
Operators
.BitwiseAnd;
848
op =
Operators
.BitwiseOr;
852
op =
Operators
.BitwiseXor;
856
op =
Operators
.BitwiseNot;
fx\src\data\System\Data\Filter\FilterException.cs (4)
118
return _Syntax(Res.GetString(Res.Expr_MissingOperand,
Operators
.ToString(before.op)));
218
return _Eval(Res.GetString(Res.Expr_TypeMismatchInBinop,
Operators
.ToString(op), type1.ToString(), type2.ToString()));
222
return _Eval(Res.GetString(Res.Expr_AmbiguousBinop,
Operators
.ToString(op), type1.ToString(), type2.ToString()));
226
return _Eval(Res.GetString(Res.Expr_UnsupportedOperator,
Operators
.ToString(op)));
fx\src\data\System\Data\Filter\UnaryNode.cs (4)
53
case
Operators
.Noop:
55
case
Operators
.UnaryPlus:
62
case
Operators
.Negative:
119
case
Operators
.Not:
fx\src\data\System\Data\Filter\ZeroOpNode.cs (9)
25
Debug.Assert(op ==
Operators
.True || op ==
Operators
.False || op ==
Operators
.Null, "Invalid zero-op");
33
case
Operators
.True:
35
case
Operators
.False:
37
case
Operators
.Null:
40
Debug.Assert(op ==
Operators
.True || op ==
Operators
.False || op ==
Operators
.Null, "Invalid zero-op");
fx\src\data\System\Data\Select.cs (38)
52
return ((op >=
Operators
.EqualTo && op <=
Operators
.LessOrEqual) || op ==
Operators
.Is || op ==
Operators
.IsNot);
60
if (expr.op ==
Operators
.Or) {
65
if (expr.op ==
Operators
.And) {
76
while (unaryNode.op ==
Operators
.Noop && unaryNode.right is UnaryNode && ((UnaryNode)unaryNode.right).op ==
Operators
.Noop) {
79
if (unaryNode.op ==
Operators
.Noop && unaryNode.right is BinaryNode) {
98
while (unaryNode.op ==
Operators
.Noop && unaryNode.right is UnaryNode && ((UnaryNode)unaryNode.right).op ==
Operators
.Noop) {
101
if (unaryNode.op ==
Operators
.Noop && unaryNode.right is BinaryNode) {
117
this.linearExpression = (this.linearExpression == null ? e : new BinaryNode(table,
Operators
.And, e, this.linearExpression));
124
canColumn.expr = (canColumn.expr == null ? expr : new BinaryNode(table,
Operators
.And, expr, canColumn.expr));
125
if (expr.op ==
Operators
.EqualTo) {
137
case
Operators
.GreaterThen: expr.op =
Operators
.LessThen; break;
138
case
Operators
.LessThen: expr.op =
Operators
.GreaterThen; break;
139
case
Operators
.GreaterOrEqual: expr.op =
Operators
.LessOrEqual; break;
140
case
Operators
.LessOrEqual: expr.op =
Operators
.GreaterOrEqual; break;
144
canColumn.expr = (canColumn.expr == null ? expr : new BinaryNode(table,
Operators
.And, expr, canColumn.expr));
145
if (expr.op ==
Operators
.EqualTo) {
153
this.linearExpression = (this.linearExpression == null ? expr : new BinaryNode(table,
Operators
.And, expr, this.linearExpression));
381
if (
Operators
.In == bnode.op ||
412
this.linearExpression = (this.linearExpression == null ? candidateColumns[i].expr : new BinaryNode(table,
Operators
.And, candidateColumns[i].expr, this.linearExpression));
532
if (expr.op ==
Operators
.And) {
544
if (expr.op !=
Operators
.Is && expr.op !=
Operators
.IsNot) {
587
case
Operators
.EqualTo: c = (c == 0 ? 0 : c < 0 ? -1 : 1); break;
588
case
Operators
.GreaterThen: c = (c > 0 ? 0 : -1); break;
589
case
Operators
.LessThen: c = (c < 0 ? 0 : 1); break;
590
case
Operators
.GreaterOrEqual: c = (c >= 0 ? 0 : -1); break;
591
case
Operators
.LessOrEqual: c = (c <= 0 ? 0 : 1); break;
592
case
Operators
.Is: c = (vLeft == DBNull.Value ? 0 : -1); break;
593
case
Operators
.IsNot: c = (vLeft != DBNull.Value ? 0 : 1); break;