42 references to Whens
System.Data.Linq (42)
SqlClient\Common\SqlVisitor.cs (2)
489
for (int i = 0, n = c.
Whens
.Count; i < n; i++) {
490
SqlWhen when = c.
Whens
[i];
SqlClient\Query\MethodCallConverter.cs (1)
320
whens.AddRange(sc.
Whens
);
SqlClient\Query\QueryConverter.cs (1)
815
whens.AddRange(sc.
Whens
);
SqlClient\Query\SqlBinder.cs (9)
391
foreach (var when in sc.
Whens
) {
450
c.
Whens
.Count == 1 && c.Else != null) {
452
SqlValue litWhen = c.
Whens
[0].Value as SqlValue;
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));
751
List<SqlWhen> whens = new List<SqlWhen>(sc.
Whens
.Count);
752
foreach (SqlWhen when in sc.
Whens
) {
1331
foreach (SqlWhen when in sc.
Whens
) {
SqlClient\Query\SqlBooleanMismatchVisitor.cs (2)
79
for (int i = 0, n = c.
Whens
.Count; i < n; i++) {
80
SqlWhen when = c.
Whens
[i];
SqlClient\Query\SqlComparer.cs (7)
150
if (c1.
Whens
.Count != c2.
Whens
.Count)
152
for (int i = 0, n = c1.
Whens
.Count; i < n; i++) {
153
if (!AreEqual(c1.
Whens
[i].Match, c2.
Whens
[i].Match) ||
154
!AreEqual(c1.
Whens
[i].Value, c2.
Whens
[i].Value))
SqlClient\Query\SqlDuplicator.cs (2)
309
SqlWhen[] whens = new SqlWhen[c.
Whens
.Count];
311
SqlWhen when = c.
Whens
[i];
SqlClient\Query\SqlFormatter.cs (2)
1093
for (int i = 0, n = c.
Whens
.Count; i < n; i++) {
1094
SqlWhen when = c.
Whens
[i];
SqlClient\Query\SqlRetyper.cs (4)
160
ProviderType type = c.
Whens
[0].Value.SqlType;
161
for (int i = 1; i < c.
Whens
.Count; i++) {
162
ProviderType whenType = c.
Whens
[i].Value.SqlType;
171
foreach (SqlWhen when in c.
Whens
.Where(w => w.Value.SqlType != type && !w.Value.SqlType.IsRuntimeOnlyType)) {
SqlClient\Reader\ObjectReaderCompiler.cs (12)
412
for (int i = 0, n = c1.
Whens
.Count; i < n; i++) {
413
if (!CanBeCompared(c1.
Whens
[i].Match) ||
414
!CanBeCompared(c1.
Whens
[i].Value)) {
568
if (c1.
Whens
.Count != c2.
Whens
.Count) {
571
for (int i = 0, n = c1.
Whens
.Count; i < n; i++) {
572
if (!AreSimilar(c1.
Whens
[i].Match, c2.
Whens
[i].Match) ||
573
!AreSimilar(c1.
Whens
[i].Value, c2.
Whens
[i].Value))
2026
for (int i = 0, n = ssc.
Whens
.Count; i < n; i++) {
2031
SqlWhen when = ssc.
Whens
[i];