1 write to sql
System.Data.Linq (1)
SqlClient\Query\Translator.cs (1)
23
this.
sql
= sqlFactory;
52 references to sql
System.Data.Linq (52)
SqlClient\Query\Translator.cs (52)
33
SqlTable table =
sql
.Table(rowType.Table, rowType, source);
54
SqlMember dm =
sql
.Member(item, discriminator.Member);
65
SqlExpression match =
sql
.Value(dt,
sql
.Default(discriminator), code, true, source);
74
return
sql
.TypeCase(root.Type, root, dm, whens.ToArray(), source);
108
bindings.Add(new SqlMemberAssign(mm.Member,
sql
.Member(item, mm)));
115
return
sql
.New(rowType, cons, null, null, bindings, source);
123
exprs[i] =
sql
.Member(item, mm.Member);
134
exprs.Add(
sql
.Member(item, mm.Member));
136
SqlExpression expansion =
sql
.Member(item, member.Member);
262
QueryConverter qc = new QueryConverter(this.services, this.typeProvider, this, this.
sql
);
297
select.Where =
sql
.Binary(expr.NodeType,
sql
.DoNotVisitExpression(eLeft), aref);
298
return
sql
.SubSelect(SqlNodeType.Exists, select);
305
select.Where =
sql
.Binary(expr.NodeType,
sql
.DoNotVisitExpression(eRight), aref);
306
return
sql
.SubSelect(SqlNodeType.Exists, select);
328
return this.TranslateEqualsOp(expr.NodeType,
sql
.DoNotVisitExpression(expr.Left),
sql
.DoNotVisitExpression(expr.Right), false);
335
return
sql
.Binary(SqlNodeType.EQ,
sql
.ValueFromObject(0,expr.SourceExpression),
sql
.ValueFromObject(1,expr.SourceExpression));
346
exprs1 = this.GetIdentityExpressions(mtLeft,
sql
.DoNotVisitExpression(eLeft));
354
exprs2 = this.GetIdentityExpressions(mtRight,
sql
.DoNotVisitExpression(eRight));
369
exp =
sql
.Binary(SqlNodeType.And, exp, eq);
373
exp =
sql
.Unary(SqlNodeType.Not, exp, exp.SourceExpression);
382
return
sql
.Binary(op, left, right);
388
sql
.Binary(SqlNodeType.Or,
389
sql
.Binary(SqlNodeType.And,
390
sql
.Unary(SqlNodeType.IsNull, (SqlExpression)SqlDuplicator.Copy(left)),
391
sql
.Unary(SqlNodeType.IsNull, (SqlExpression)SqlDuplicator.Copy(right))
393
sql
.Binary(SqlNodeType.And,
394
sql
.Binary(SqlNodeType.And,
395
sql
.Unary(SqlNodeType.IsNotNull, (SqlExpression)SqlDuplicator.Copy(left)),
396
sql
.Unary(SqlNodeType.IsNotNull, (SqlExpression)SqlDuplicator.Copy(right))
398
sql
.Binary(eqOp, left, right)
404
return
sql
.Binary(eqOp, left, right);
411
sql
.Unary(SqlNodeType.Not,
412
sql
.Binary(SqlNodeType.Or,
413
sql
.Binary(SqlNodeType.And,
414
sql
.Unary(SqlNodeType.IsNull, (SqlExpression)SqlDuplicator.Copy(left)),
415
sql
.Unary(SqlNodeType.IsNull, (SqlExpression)SqlDuplicator.Copy(right))
417
sql
.Binary(SqlNodeType.And,
418
sql
.Binary(SqlNodeType.And,
419
sql
.Unary(SqlNodeType.IsNotNull, (SqlExpression)SqlDuplicator.Copy(left)),
420
sql
.Unary(SqlNodeType.IsNotNull, (SqlExpression)SqlDuplicator.Copy(right))
422
sql
.Binary(eqOp, left, right)
429
return
sql
.Binary(neOp, left, right);
460
SqlExpression compare =
sql
.Unary(expr.NodeType,
sql
.DoNotVisitExpression(exprs[i]), expr.SourceExpression);
465
exp =
sql
.Binary(combo, exp, compare);
516
exprs.Add(
sql
.Member((SqlExpression)SqlDuplicator.Copy(expr), mm));