40 references to Whens
System.Data.Linq (40)
SqlClient\Common\SqlVisitor.cs (2)
508
for (int i = 0, n = c.
Whens
.Count; i < n; i++) {
509
SqlWhen when = c.
Whens
[i];
SqlClient\Query\SqlBinder.cs (1)
734
foreach (SqlWhen when in sc.
Whens
) {
SqlClient\Query\SqlCaseSimplifier.cs (15)
62
foreach (SqlWhen when in sc.
Whens
) {
78
foreach(SqlWhen when in sc.
Whens
) {
92
for (int i = 0, n = c.
Whens
.Count; i < n; i++) {
93
if (c.
Whens
[i].Match == null) {
99
c.
Whens
[compareWhen].Match = VisitExpression(c.
Whens
[compareWhen].Match);
100
c.
Whens
[compareWhen].Value = VisitExpression(c.
Whens
[compareWhen].Value);
105
for (int i = 0, n = c.
Whens
.Count; i < n; i++) {
107
SqlWhen when = c.
Whens
[i];
110
if (!SqlComparer.AreEqual(c.
Whens
[compareWhen].Value, when.Value)) {
116
newWhens.Add(c.
Whens
[compareWhen]);
119
SqlExpression rewrite = TryToConsolidateAllValueExpressions(newWhens.Count, c.
Whens
[compareWhen].Value);
129
rewrite = TryToWriteAsReducedCase(c.ClrType, c.Expression, newWhens, c.
Whens
[compareWhen].Match, c.
Whens
.Count);
SqlClient\Query\SqlColumnizer.cs (3)
96
for (int i = 0, n = c.
Whens
.Count; i < n; i++) {
98
c.
Whens
[i].Value = this.VisitExpression(c.
Whens
[i].Value);
SqlClient\Query\SqlComparer.cs (10)
179
if (c1.
Whens
.Count != c2.
Whens
.Count)
181
for (int i = 0, n = c1.
Whens
.Count; i < n; i++) {
182
if (!AreEqual(c1.
Whens
[i].Match, c2.
Whens
[i].Match) ||
183
!AreEqual(c1.
Whens
[i].Value, c2.
Whens
[i].Value))
290
if (sc.
Whens
.Count != 1) {
293
if (!SqlComparer.AreEqual(sc.Expression, sc.
Whens
[0].Match)) {
296
SqlExpression result = sc.
Whens
[0].Value;
SqlClient\Query\SqlDuplicator.cs (2)
327
SqlWhen[] whens = new SqlWhen[c.
Whens
.Count];
329
SqlWhen when = c.
Whens
[i];
SqlClient\Query\SqlExpressionNullability.cs (1)
31
return CanBeNull(sc.
Whens
.Select(w => w.Value));
SqlClient\Query\SqlFormatter.cs (2)
1122
for (int i = 0, n = c.
Whens
.Count; i < n; i++) {
1123
SqlWhen when = c.
Whens
[i];
SqlClient\Query\SqlRetyper.cs (4)
186
ProviderType type = c.
Whens
[0].Value.SqlType;
187
for (int i = 1; i < c.
Whens
.Count; i++) {
188
ProviderType whenType = c.
Whens
[i].Value.SqlType;
193
foreach (SqlWhen when in c.
Whens
.Where(w => w.Value.SqlType != type && !w.Value.SqlType.IsRuntimeOnlyType)) {