1 write to sql
System.Data.Linq (1)
SqlClient\Query\SqlBinder.cs (1)
109
this.
sql
= sqlFactory;
70 references to sql
System.Data.Linq (70)
SqlClient\Query\SqlBinder.cs (70)
111
this.expander = new SqlExpander(this.
sql
);
179
return this.VisitUnaryOperator(this.
sql
.Unary(SqlNodeType.IsNull, bo.Right, bo.SourceExpression));
182
return this.VisitUnaryOperator(this.
sql
.Unary(SqlNodeType.IsNull, bo.Left, bo.SourceExpression));
188
return this.VisitUnaryOperator(this.
sql
.Unary(SqlNodeType.IsNotNull, bo.Right, bo.SourceExpression));
191
return this.VisitUnaryOperator(this.
sql
.Unary(SqlNodeType.IsNotNull, bo.Left, bo.SourceExpression));
215
return VisitUnaryOperator(new SqlUnary(negator, bo.ClrType, bo.SqlType,
sql
.DoNotVisitExpression(bo.Right), bo.SourceExpression));
224
return VisitUnaryOperator(new SqlUnary(negator, bo.ClrType, bo.SqlType,
sql
.DoNotVisitExpression(bo.Left), bo.SourceExpression));
235
return
sql
.ValueFromObject(leftValue==rightValue, false, bo.SourceExpression);
237
return
sql
.ValueFromObject(leftValue!=rightValue, false, bo.SourceExpression);
253
return
sql
.ValueFromObject(false, false, bo.SourceExpression);
259
return
sql
.ValueFromObject(false, false, bo.SourceExpression);
262
return
sql
.ValueFromObject((bool)(vLeft.Value ?? false) && (bool)(vRight.Value ?? false), false, bo.SourceExpression);
274
return
sql
.ValueFromObject(true, false, bo.SourceExpression);
280
return
sql
.ValueFromObject(true, false, bo.SourceExpression);
283
return
sql
.ValueFromObject((bool)(vLeft.Value ?? false) || (bool)(vRight.Value ?? false), false, bo.SourceExpression);
335
return this.VisitExpression(
sql
.ValueFromObject(bo.NodeType == SqlNodeType.NE, false, bo.SourceExpression));
341
return this.VisitExpression(
sql
.ValueFromObject(
351
return this.VisitExpression(
sql
.Binary(bo.NodeType, leftDt.Discriminator, rightDt.Discriminator));
430
SqlExpression @default =
sql
.Value(discriminator.GetType(), tc.Whens[0].Match.SqlType, defaultType.InheritanceCode, true, tc.SourceExpression);
435
values.Add(
sql
.Value(discriminator.GetType(), when.Match.SqlType, ((SqlValue)when.Match).Value, true, tc.SourceExpression));
438
return
sql
.Case(tc.Discriminator.ClrType, tc.Discriminator, matches, values, tc.SourceExpression);
442
return this.VisitExpression(
sql
.Member(dof.Object, mt.Discriminator.Member));
445
return
sql
.TypedLiteralNull(dof.ClrType, dof.SourceExpression);
455
return this.VisitExpression(
sql
.Binary(SqlNodeType.And, c.Whens[0].Match, c.Whens[0].Value));
458
return this.VisitExpression(
sql
.Binary(SqlNodeType.Or, c.Whens[0].Match, c.Else));
491
return
sql
.TypedLiteralNull(type, target.SourceExpression);
516
return
sql
.TypedLiteralNull(type, target.SourceExpression);
572
return
sql
.Value(typeof(bool), val.SqlType, !(bool)val.Value, val.IsClientSpecified, val.SourceExpression);
578
new [] { new SqlWhen(uo.Operand,
sql
.ValueFromObject(1, false, uo.SourceExpression)) },
579
sql
.ValueFromObject(0, false, uo.SourceExpression),
582
return
sql
.Binary(SqlNodeType.EQ, c,
sql
.ValueFromObject(0, false, uo.SourceExpression));
585
return
sql
.Unary(SqlNodeType.Not, uo.Operand);
591
return
sql
.Value(uo.ClrType, uo.SqlType, DBConvert.ChangeType(val.Value, uo.ClrType), val.IsClientSpecified, val.SourceExpression);
596
return
sql
.ValueFromObject(uo.NodeType == SqlNodeType.IsNotNull, false, uo.SourceExpression);
601
exp =
sql
.SubSelect(SqlNodeType.Exists, ((SqlSubSelect)exp).Select);
603
exp =
sql
.Unary(SqlNodeType.Not, exp, exp.SourceExpression);
609
exp =
sql
.SubSelect(SqlNodeType.Exists, cq.Query.Select);
611
exp =
sql
.Unary(SqlNodeType.Not, exp, exp.SourceExpression);
615
return
sql
.ValueFromObject(uo.NodeType == SqlNodeType.IsNotNull, false, uo.SourceExpression);
628
values.Add(VisitUnaryOperator(
sql
.Unary(uo.NodeType, when.Value, when.Value.SourceExpression)));
630
return
sql
.Case(sc.ClrType, sc.Expression, matches, values, sc.SourceExpression);
646
return
sql
.Case(uo.ClrType, tc.Discriminator, newMatches, newValues, tc.SourceExpression);
650
return
sql
.Value(typeof(bool), this.typeProvider.From(typeof(int)), (val.Value == null) == (uo.NodeType == SqlNodeType.IsNull), val.IsClientSpecified, uo.SourceExpression);
725
SqlExpression result =
sql
.Case(newClrType, sc.Expression, matches, values, sc.SourceExpression);
745
SqlExpression result =
sql
.Case(newClrType, sc.Expression, newMatches, newValues, sc.SourceExpression);
757
return
sql
.SearchedCase(whens.ToArray(), @else, sc.SourceExpression);
788
ProviderType sqlType =
sql
.Default(mm);
803
ProviderType sqlType =
sql
.Default(mm);
819
if (e != null) return
sql
.Unary(SqlNodeType.OuterJoinedValue, e);
835
ProviderType sqlType =
sql
.Default(mm);
865
SqlNode result = this.Visit(
sql
.Member(aref, m.Member));
881
this.currentSelect.From =
sql
.MakeJoin(SqlJoinType.OuterApply, this.currentSelect.From, alias, null, sub.SourceExpression);
884
return
sql
.Member(exp, m.Member);
895
SqlSubSelect subSel =
sql
.SubSelect(subType, newSelect);
916
return
sql
.Value(m.ClrType, m.SqlType, null, val.IsClientSpecified, m.SourceExpression);
920
return
sql
.Value(m.ClrType, m.SqlType, p.GetValue(val.Value, null), val.IsClientSpecified, m.SourceExpression);
924
return
sql
.Value(m.ClrType, m.SqlType, f.GetValue(val.Value), val.IsClientSpecified, m.SourceExpression);
952
return
sql
.Member(exp, m.Member);
967
SqlSubSelect newss =
sql
.SubSelect(SqlNodeType.Multiset, sel, ss.ClrType);
977
SqlSubSelect newss =
sql
.SubSelect(SqlNodeType.Element, sel);
1231
return
sql
.Unary(SqlNodeType.OuterJoinedValue, e);
1263
SqlSubSelect ms =
sql
.SubSelect(SqlNodeType.Multiset, select);
1308
node =
sql
.Case(cc.ClrType, cc.Expression, matches, values, cc.SourceExpression);
1383
this.currentSelect.From =
sql
.MakeJoin(joinType, this.currentSelect.From, sa, where, ss.SourceExpression);
1585
SqlExpression discriminatorPredicate =
sql
.Binary(SqlNodeType.EQ, clientCase.Expression, clientCase.Whens[i].Match);
1586
sel.Where =
sql
.AndAccumulate(sel.Where, discriminatorPredicate);
1587
elseFilter =
sql
.AndAccumulate(elseFilter,
sql
.Binary(SqlNodeType.NE, clientCase.Expression, clientCase.Whens[i].Match));
1599
sel.Where =
sql
.AndAccumulate(sel.Where, elseFilter);