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