33 references to SqlWhen
System.Data.Linq (33)
SqlClient\Common\SqlFactory.cs (1)
459
whens.Add(new
SqlWhen
(matches[i], values[i]));
SqlClient\Query\MethodCallConverter.cs (3)
195
new
SqlWhen
(lower, sql.ValueFromObject(-1, false, source)),
196
new
SqlWhen
(equal, sql.ValueFromObject(0, false, source)),
316
whens.Add(new
SqlWhen
(mc.Arguments[0], mc.Arguments[1]));
SqlClient\Query\QueryConverter.cs (2)
810
whens.Add(new
SqlWhen
(this.VisitExpression(cond.Test), this.VisitExpression(cond.IfTrue)));
1384
whens.Add(new
SqlWhen
(sql.Unary(SqlNodeType.IsNull, left, left.SourceExpression), right));
SqlClient\Query\SqlBinder.cs (2)
578
new [] { new
SqlWhen
(uo.Operand, sql.ValueFromObject(1, false, uo.SourceExpression)) },
754
whens.Add(new
SqlWhen
(when.Match, value));
SqlClient\Query\SqlBooleanizer.cs (3)
65
new
SqlWhen
(predicateExpression, valueTrue),
66
new
SqlWhen
(new SqlUnary(SqlNodeType.Not, predicateExpression.ClrType, predicateExpression.SqlType, predicateExpression, predicateExpression.SourceExpression), valueFalse)
75
new SqlWhen[] { new
SqlWhen
(predicateExpression, valueTrue) },
SqlClient\Query\SqlDuplicator.cs (2)
312
whens[i] = new
SqlWhen
(this.VisitExpression(when.Match), this.VisitExpression(when.Value));
330
whens[i] = new
SqlWhen
(this.VisitExpression(when.Match), this.VisitExpression(when.Value));
SqlClient\Query\SqlMethodCallConverter.cs (19)
1046
new
SqlWhen
(lower, sql.ValueFromObject(-1, false, source)),
1047
new
SqlWhen
(equal, sql.ValueFromObject(0, false, source)),
1612
SqlWhen when = new
SqlWhen
(lenZeroExpr, sql.ValueFromObject(0, source));
1632
SqlWhen when = new
SqlWhen
(lenZeroExpr, mc.Arguments[1]);
1655
SqlWhen when = new
SqlWhen
(lenZeroExpr, mc.Arguments[1]);
1694
SqlWhen whenNotContained = new
SqlWhen
(notContained, sql.ValueFromObject(-1, false, source));
1698
SqlWhen whenLenZero = new
SqlWhen
(lenZeroExpr, sql.Subtract(sql.CLRLENGTH(exprS), 1));
1728
SqlWhen whenNotContained = new
SqlWhen
(notContained, sql.ValueFromObject(-1, false, source));
1734
SqlWhen whenLenZero = new
SqlWhen
(lenZeroExpr, mc.Arguments[1]);
1766
SqlWhen whenNotContained = new
SqlWhen
(notContained, sql.ValueFromObject(-1, false, source));
1772
SqlWhen whenLenZero = new
SqlWhen
(lenZeroExpr, mc.Arguments[1]);
1801
return sql.SearchedCase(new SqlWhen[] { new
SqlWhen
(insertingAtEnd, stringConcat) }, stuffCall, source);
1818
return sql.SearchedCase(new SqlWhen[] { new
SqlWhen
(dontChange, exprS) }, elseCase, source);
1834
return sql.SearchedCase(new SqlWhen[] { new
SqlWhen
(dontChange, exprS) }, elseCase, source);
1851
return sql.SearchedCase(new SqlWhen[] { new
SqlWhen
(dontChange, exprS) }, elseCase, source);
1867
return sql.SearchedCase(new SqlWhen[] { new
SqlWhen
(dontChange, exprS) }, elseCase, source);
2060
return new SqlSearchedCase(mc.Method.ReturnType, new SqlWhen[] { new
SqlWhen
(aLower, b) }, a, source);
2069
return sql.SearchedCase(new SqlWhen[] { new
SqlWhen
(aLower, a) }, b, source);
2110
return sql.SearchedCase(new SqlWhen[] { new
SqlWhen
(condition, specialCase) }, roundX, source);
SqlClient\Query\SqlTypeConverter.cs (1)
139
new SqlWhen[] { new
SqlWhen
(expr, sql.ValueFromObject(true.ToString(), false, expr.SourceExpression)) },