43 references to Whens
System.Data.Linq (43)
SqlClient\Common\SqlVisitor.cs (2)
499
for (int i = 0, n = c.
Whens
.Count; i < n; i++) {
500
SqlClientWhen when = c.
Whens
[i];
SqlClient\Query\SqlBinder.cs (11)
626
foreach (SqlClientWhen when in sc.
Whens
) {
713
foreach (SqlClientWhen when in sc.
Whens
) {
1239
foreach (SqlClientWhen when in sc.
Whens
) {
1290
foreach (SqlClientWhen when in cc.
Whens
) {
1305
matches.Add(cc.
Whens
[i].Match);
1521
foreach (SqlClientWhen when in sc.
Whens
) {
1525
allSame = allSame && SqlComparer.AreEqual(when.Value, sc.
Whens
[0].Value);
1580
int elseIndex = clientCase.
Whens
.Count - 1;
1581
int elseCount = clientCase.
Whens
[elseIndex].Match == null ? 1 : 0;
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\SqlColumnizer.cs (3)
114
for (int i = 0, n = c.
Whens
.Count; i < n; i++) {
116
c.
Whens
[i].Value = this.VisitExpression(c.
Whens
[i].Value);
SqlClient\Query\SqlComparer.cs (7)
162
if (c1.
Whens
.Count != c2.
Whens
.Count)
164
for (int i = 0, n = c1.
Whens
.Count; i < n; i++) {
165
if (!AreEqual(c1.
Whens
[i].Match, c2.
Whens
[i].Match) ||
166
!AreEqual(c1.
Whens
[i].Value, c2.
Whens
[i].Value))
SqlClient\Query\SqlDuplicator.cs (2)
318
SqlClientWhen[] whens = new SqlClientWhen[c.
Whens
.Count];
320
SqlClientWhen when = c.
Whens
[i];
SqlClient\Query\SqlExpander.cs (3)
154
for (int i = 0; i < scs[0].
Whens
.Count; ++i) {
157
SqlClientWhen when = scs[j].
Whens
[i];
160
whens.Add(new SqlClientWhen(scs[0].
Whens
[i].Match, this.ExpandTogether(scos)));
SqlClient\Query\SqlFormatter.cs (2)
1155
for (int i = 0, n = c.
Whens
.Count; i < n; i++) {
1156
SqlClientWhen when = c.
Whens
[i];
SqlClient\Reader\ObjectReaderCompiler.cs (13)
402
for (int i = 0, n = c1.
Whens
.Count; i < n; i++) {
403
if (!CanBeCompared(c1.
Whens
[i].Match) ||
404
!CanBeCompared(c1.
Whens
[i].Value)) {
554
if (c1.
Whens
.Count != c2.
Whens
.Count) {
557
for (int i = 0, n = c1.
Whens
.Count; i < n; i++) {
558
if (!AreSimilar(c1.
Whens
[i].Match, c2.
Whens
[i].Match) ||
559
!AreSimilar(c1.
Whens
[i].Value, c2.
Whens
[i].Value)) {
1335
foreach (SqlClientWhen when in c.
Whens
) {
1911
for (int i = 0, n = scc.
Whens
.Count; i < n; i++) {
1916
SqlClientWhen when = scc.
Whens
[i];