1 write to sql
System.Data.Linq (1)
SqlClient\Query\SqlCaseSimplifier.cs (1)
21
this.
sql
= sql;
10 references to sql
System.Data.Linq (10)
SqlClient\Query\SqlCaseSimplifier.cs (10)
82
values.Add(
sql
.ValueFromObject((nt==SqlNodeType.EQ || nt==SqlNodeType.EQ2V) == eq, false, sc.SourceExpression));
84
return this.VisitExpression(
sql
.Case(typeof(bool), sc.Expression, matches, values, sc.SourceExpression));
188
rewrite =
sql
.OrAccumulate(rewrite,
sql
.Binary(SqlNodeType.EQ, discriminator, newWhens[i].Match));
191
rewrite =
sql
.AndAccumulate(rewrite,
sql
.Binary(SqlNodeType.NE, discriminator, newWhens[i].Match));
201
rewrite =
sql
.OrAccumulate(rewrite,
sql
.Unary(SqlNodeType.IsNull, discriminator, discriminator.SourceExpression));
204
rewrite =
sql
.AndAccumulate(rewrite,
sql
.Unary(SqlNodeType.IsNotNull, discriminator, discriminator.SourceExpression));