47 references to Whens
System.Data.Linq (47)
SqlClient\Common\SqlVisitor.cs (2)
517
for (int i = 0, n = tc.
Whens
.Count; i < n; i++) {
518
SqlTypeCaseWhen when = tc.
Whens
[i];
SqlClient\Query\SqlBinder.cs (11)
427
foreach (SqlTypeCaseWhen when in tc.
Whens
) {
430
SqlExpression @default = sql.Value(discriminator.GetType(), tc.
Whens
[0].Match.SqlType, defaultType.InheritanceCode, true, tc.SourceExpression);
498
foreach (SqlTypeCaseWhen when in tc.
Whens
) {
505
if (reducedToNull == tc.
Whens
.Count) {
507
tc.
Whens
[0].TypeBinding.SetClrType(type);
508
return tc.
Whens
[0].TypeBinding; // <-- Points to a SqlValue null.
637
foreach (SqlTypeCaseWhen when in tc.
Whens
) {
765
SqlNew tb = tc.
Whens
[0].TypeBinding as SqlNew;
766
foreach (SqlTypeCaseWhen when in tc.
Whens
) {
1318
foreach (SqlTypeCaseWhen when in tc.
Whens
) {
1325
tc.
Whens
[i].TypeBinding = fetchedValue;
SqlClient\Query\SqlColumnizer.cs (3)
105
for (int i = 0, n = tc.
Whens
.Count; i < n; i++) {
107
tc.
Whens
[i].TypeBinding = this.VisitExpression(tc.
Whens
[i].TypeBinding);
SqlClient\Query\SqlComparer.cs (7)
133
if (c1.
Whens
.Count != c2.
Whens
.Count) {
136
for (int i = 0, c = c1.
Whens
.Count; i < c; ++i) {
137
if (!AreEqual(c1.
Whens
[i].Match, c2.
Whens
[i].Match)) {
140
if (!AreEqual(c1.
Whens
[i].TypeBinding, c2.
Whens
[i].TypeBinding)) {
SqlClient\Query\SqlDuplicator.cs (1)
115
foreach(SqlTypeCaseWhen when in tc.
Whens
) {
SqlClient\Query\SqlExpander.cs (3)
185
for (int i = 0; i < tcs[0].
Whens
.Count; ++i) {
188
SqlTypeCaseWhen when = tcs[j].
Whens
[i];
192
whens.Add(new SqlTypeCaseWhen(tcs[0].
Whens
[i].Match, expanded));
SqlClient\Query\SqlFlattener.cs (1)
198
foreach (SqlTypeCaseWhen when in tc.
Whens
) {
SqlClient\Query\SqlFormatter.cs (2)
1188
for (int i = 0, n = c.
Whens
.Count; i < n; i++) {
1189
SqlTypeCaseWhen when = c.
Whens
[i];
SqlClient\Query\SqlMethodCallConverter.cs (3)
679
foreach (SqlTypeCaseWhen when in tc.
Whens
) {
687
for (int i = 0, n = tc.
Whens
.Count; i < n; i++) {
688
SqlTypeCaseWhen when = tc.
Whens
[i];
SqlClient\Query\Translator.cs (2)
478
foreach (SqlTypeCaseWhen when in tc.
Whens
) {
483
return tc.
Whens
[0].TypeBinding; // There were no SqlNews, take the first alternative
SqlClient\Reader\ObjectReaderCompiler.cs (12)
425
for (int i = 0, c = c1.
Whens
.Count; i < c; ++i) {
426
if (!CanBeCompared(c1.
Whens
[i].Match)) {
429
if (!CanBeCompared(c1.
Whens
[i].TypeBinding)) {
584
if (c1.
Whens
.Count != c2.
Whens
.Count) {
587
for (int i = 0, c = c1.
Whens
.Count; i < c; ++i) {
588
if (!AreSimilar(c1.
Whens
[i].Match, c2.
Whens
[i].Match)) {
591
if (!AreSimilar(c1.
Whens
[i].TypeBinding, c2.
Whens
[i].TypeBinding)) {
1945
for (int i = 0, n = stc.
Whens
.Count; i < n; i++) {
1950
SqlTypeCaseWhen when = stc.
Whens
[i];