301 references to SourceExpression
System.Data.Linq (301)
SqlClient\Common\SqlFactory.cs (21)
34
return UnaryConvert(clrType, sqlType, expr, expr.
SourceExpression
);
57
return UnaryConvert(clrType, typeProvider.From(clrType), expr, expr.
SourceExpression
);
84
return UnaryConvert(typeof(DateTime), typeProvider.From(typeof(DateTime)), expr, expr.
SourceExpression
);
144
return Binary(SqlNodeType.Add, expr, ValueFromObject(second, false, expr.
SourceExpression
));
148
return Binary(SqlNodeType.Sub, expr, ValueFromObject(second, false, expr.
SourceExpression
));
152
return Binary(SqlNodeType.Mul, expr, ValueFromObject(second, false, expr.
SourceExpression
));
156
return Binary(SqlNodeType.Div, expr, ValueFromObject(second, false, expr.
SourceExpression
));
160
return Binary(SqlNodeType.Mod, expr, ValueFromObject(second, false, expr.
SourceExpression
));
168
return FunctionCall(typeof(int), "LEN", new SqlExpression[] { expr }, expr.
SourceExpression
);
176
return FunctionCall(typeof(int), "DATALENGTH", new SqlExpression[] { expr }, expr.
SourceExpression
);
192
new SqlVariable(typeof(void), null, partName, expr.
SourceExpression
),
195
expr.
SourceExpression
200
return DATEADD(partName, value, expr, expr.
SourceExpression
, false);
218
return DATETIMEOFFSETADD(partName, value, expr, expr.
SourceExpression
, false);
252
result = DATEADD("NANOSECOND", ns, result, dateTime.
SourceExpression
, asNullable);
254
result = DATEADD("MILLISECOND", ms, result, dateTime.
SourceExpression
, asNullable);
256
result = DATEADD("SECOND", ss, result, dateTime.
SourceExpression
, asNullable);
257
result = DATEADD("MINUTE", mi, result, dateTime.
SourceExpression
, asNullable);
258
result = DATEADD("HOUR", hh, result, dateTime.
SourceExpression
, asNullable);
313
return new SqlDiscriminatedType(typeProvider.From(typeof(Type)), discriminator, targetType, discriminator.
SourceExpression
);
321
return Unary(nodeType, expression, expression.
SourceExpression
);
SqlClient\Common\SqlNode.cs (15)
551
: base(SqlNodeType.Alias, node.
SourceExpression
) {
576
: base(SqlNodeType.AliasRef, GetClrType(alias.Node), alias.
SourceExpression
) {
686
: base(SqlNodeType.Union, right.
SourceExpression
) {
948
: base(nt, clrType, sqlType, right.
SourceExpression
) {
1446
: base(SqlNodeType.Member, clrType, sqlType, expr.
SourceExpression
) {
1493
: this(expr.ClrType, expr.SqlType, name, null, expr, expr.
SourceExpression
) {
1547
: base(SqlNodeType.ColumnRef, col.ClrType, col.
SourceExpression
) {
1603
: base(SqlNodeType.MemberAssign, expr.
SourceExpression
) {
1871
: base(nt, clrType, sqlType, select.
SourceExpression
) {
1901
: base(SqlNodeType.ClientQuery, subquery.ClrType, subquery.SqlType, subquery.
SourceExpression
) {
2103
: base(SqlNodeType.DoNotVisit, expr.ClrType, expr.
SourceExpression
) {
2123
: base(SqlNodeType.OptionalValue, value.ClrType, value.SqlType, value.
SourceExpression
) {
2208
: base(SqlNodeType.SharedExpression, expr.ClrType, expr.
SourceExpression
) {
2233
: base(SqlNodeType.SharedExpressionRef, expr.ClrType, expr.
SourceExpression
) {
2250
: base(SqlNodeType.SimpleExpression, expr.ClrType, expr.
SourceExpression
) {
SqlClient\Query\LongTypeConverter.cs (4)
38
return sql.UnaryConvert(expr.ClrType, newType, expr, expr.
SourceExpression
);
76
Strings.TextNTextAndImageCannotOccurInDistinct(select.
SourceExpression
), SqlProvider.ProviderMode.Sql2000, SqlProvider.ProviderMode.SqlCE));
100
Strings.TextNTextAndImageCannotOccurInUnion(su.
SourceExpression
), SqlProvider.ProviderMode.Sql2000, SqlProvider.ProviderMode.SqlCE));
111
Strings.LenOfTextOrNTextNotSupported(fc.
SourceExpression
), SqlProvider.ProviderMode.Sql2000));
SqlClient\Query\MethodCallConverter.cs (11)
165
SqlValue emptyStr = new SqlValue(strValue.ClrType, strValue.SqlType, String.Empty, strValue.IsClientSpecified, strValue.
SourceExpression
);
205
return sql.UnaryValueOf(m.Expression, m.
SourceExpression
);
208
return sql.Unary(SqlNodeType.IsNotNull, m.Expression, m.
SourceExpression
);
232
return sql.ValueFromObject("", false, mc.
SourceExpression
);
287
return sql.Unary(SqlNodeType.Negate, mc.Arguments[0], mc.Method, mc.
SourceExpression
);
289
return sql.Unary(SqlNodeType.BitNot, mc.Arguments[0], mc.Method, mc.
SourceExpression
);
291
return sql.Unary(SqlNodeType.Not, mc.Arguments[0], mc.Method, mc.
SourceExpression
);
303
SqlDiscriminatorOf discriminatorOf = new SqlDiscriminatorOf(mc.Object, discriminatorType, this.sql.TypeProvider.From(discriminatorType), mc.
SourceExpression
);
306
return this.VisitExpression(sql.StaticType(mt, mc.
SourceExpression
));
323
return sql.SearchedCase(whens.ToArray(), @else, mc.
SourceExpression
);
349
return sql.TypedLiteralNull(treatType, t.
SourceExpression
);
SqlClient\Query\QueryConverter.cs (9)
699
SqlExpression datetime2 = new SqlVariable(expr.ClrType, expr.SqlType, "DATETIME2", expr.
SourceExpression
);
700
return sql.FunctionCall(typeof(DateTime), "CONVERT", new SqlExpression[2] { datetime2, expr }, expr.
SourceExpression
);
708
return sql.TypedLiteralNull(type, expr.
SourceExpression
);
715
cp.
SourceExpression
722
return sql.UnaryConvert(type, typeProvider.From(type), expr, expr.
SourceExpression
);
734
return new SqlUnary(SqlNodeType.Treat, type, typeProvider.From(type), expr, expr.
SourceExpression
);
1384
whens.Add(new SqlWhen(sql.Unary(SqlNodeType.IsNull, left, left.
SourceExpression
), right));
1442
SqlSelect result = new SqlSelect(aref1, alias1, select1.
SourceExpression
);
1466
SqlSelect result = new SqlSelect(aref1, alias1, select1.
SourceExpression
);
SqlClient\Query\SqlBinder.cs (61)
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
));
344
bo.
SourceExpression
));
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
);
445
return sql.TypedLiteralNull(dof.ClrType, dof.
SourceExpression
);
491
return sql.TypedLiteralNull(type, target.
SourceExpression
);
516
return sql.TypedLiteralNull(type, target.
SourceExpression
);
550
new SqlUnary(SqlNodeType.OuterJoinedValue, ov.ClrType, ov.SqlType, ov.HasValue, ov.
SourceExpression
)
551
, uo.
SourceExpression
)
557
new SqlUnary(SqlNodeType.OuterJoinedValue, tc.Discriminator.ClrType, tc.Discriminator.SqlType, tc.Discriminator, tc.
SourceExpression
),
558
uo.
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
),
580
uo.
SourceExpression
582
return sql.Binary(SqlNodeType.EQ, c, sql.ValueFromObject(0, false, uo.
SourceExpression
));
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
);
603
exp = sql.Unary(SqlNodeType.Not, exp, exp.
SourceExpression
);
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
);
638
SqlUnary un = new SqlUnary(uo.NodeType, uo.ClrType, uo.SqlType, when.TypeBinding, when.TypeBinding.
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
);
789
c = new SqlColumn(m.ClrType, sqlType, name, mm, null, m.
SourceExpression
);
804
c = new SqlColumn(m.ClrType, sqlType, name, mm, null, m.
SourceExpression
);
836
c = new SqlUserColumn(m.ClrType, sqlType, suq, name, mm.IsPrimaryKey, m.
SourceExpression
);
863
SqlSelect newSelect = new SqlSelect(aref, alias, sub.
SourceExpression
);
881
this.currentSelect.From = sql.MakeJoin(SqlJoinType.OuterApply, this.currentSelect.From, alias, null, sub.
SourceExpression
);
904
newSelect.From = new SqlJoin(SqlJoinType.CrossApply, alias, ralias, null, m.
SourceExpression
);
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
);
943
return new SqlClientParameter(m.ClrType, m.SqlType, accessor, cp.
SourceExpression
);
966
sel.From = new SqlJoin(SqlJoinType.CrossApply, sel.From, alias, null, ss.
SourceExpression
);
976
sel.From = new SqlJoin(SqlJoinType.CrossApply, sel.From, alias, null, ss.
SourceExpression
);
1096
expr = new SqlColumn(expr.ClrType, expr.SqlType, null, null, expr, expr.
SourceExpression
);
1102
SqlSelect simple = new SqlSelect(expr, this.currentSelect.From, expr.
SourceExpression
);
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
);
1611
return new SqlSelect(aref, alias, union.
SourceExpression
);
SqlClient\Query\SqlBooleanizer.cs (7)
43
sql.Value(typeof(bool), valueExpression.SqlType, true, false, valueExpression.
SourceExpression
)
58
SqlExpression valueTrue = sql.ValueFromObject(true, false, predicateExpression.
SourceExpression
);
59
SqlExpression valueFalse = sql.ValueFromObject(false, false, predicateExpression.
SourceExpression
);
61
SqlExpression valueNull = sql.Value(valueTrue.ClrType, valueTrue.SqlType, null, false, predicateExpression.
SourceExpression
);
66
new SqlWhen(new SqlUnary(SqlNodeType.Not, predicateExpression.ClrType, predicateExpression.SqlType, predicateExpression, predicateExpression.
SourceExpression
), valueFalse)
69
predicateExpression.
SourceExpression
77
predicateExpression.
SourceExpression
SqlClient\Query\SqlCaseSimplifier.cs (5)
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
));
201
rewrite = sql.OrAccumulate(rewrite, sql.Unary(SqlNodeType.IsNull, discriminator, discriminator.
SourceExpression
));
204
rewrite = sql.AndAccumulate(rewrite, sql.Unary(SqlNodeType.IsNotNull, discriminator, discriminator.
SourceExpression
));
231
return new SqlSimpleCase(caseType, discriminator, newWhens, discriminator.
SourceExpression
);
SqlClient\Query\SqlColumnizer.cs (1)
54
return new SqlColumn(expr.ClrType, expr.SqlType, null, null, expr, expr.
SourceExpression
);
SqlClient\Query\SqlCrossApplyToCrossJoin.cs (1)
35
Annotations.Add(join, new SqlServerCompatibilityAnnotation(Strings.SourceExpressionAnnotation(join.
SourceExpression
), SqlProvider.ProviderMode.Sql2000));
SqlClient\Query\SqlDuplicator.cs (39)
84
return new SqlRowNumber(rowNumber.ClrType, rowNumber.SqlType, orderBy, rowNumber.
SourceExpression
);
103
return new SqlJoinedCollection(jc.ClrType, jc.SqlType, this.VisitExpression(jc.Expression), this.VisitExpression(jc.Count), jc.
SourceExpression
);
110
return new SqlClientArray(scar.ClrType, scar.SqlType, exprs, scar.
SourceExpression
);
118
return new SqlTypeCase(tc.ClrType, tc.SqlType, tc.RowType, disc, whens, tc.
SourceExpression
);
129
return new SqlNew(sox.MetaType, sox.SqlType, sox.Constructor, args, sox.ArgMembers, bindings, sox.
SourceExpression
);
136
SqlLink newLink = new SqlLink(new object(), link.RowType, link.ClrType, link.SqlType, null, link.Member, exprs, null, link.
SourceExpression
);
144
SqlColumn n = new SqlColumn(col.ClrType, col.SqlType, col.Name, col.MetaMember, null, col.
SourceExpression
);
157
return new SqlDelete((SqlSelect)this.Visit(sd.Select), sd.
SourceExpression
);
166
SqlInsert n = new SqlInsert(si.Table, this.VisitExpression(si.Expression), si.
SourceExpression
);
176
return new SqlJoin(join.JoinType, left, right, cond, join.
SourceExpression
);
191
SqlParameter n = new SqlParameter(p.ClrType, p.SqlType, p.Name, p.
SourceExpression
);
196
SqlRow nrow = new SqlRow(row.
SourceExpression
);
228
SqlSelect n = new SqlSelect(selection, from, select.
SourceExpression
);
244
SqlTable nt = new SqlTable(tab.MetaTable, tab.RowType, tab.SqlRowType, tab.
SourceExpression
);
257
SqlUserQuery n = new SqlUserQuery(suq.QueryText, projection, args, suq.
SourceExpression
);
261
SqlUserColumn dupSuc = new SqlUserColumn(suc.ClrType, suc.SqlType, suc.Query, suc.Name, suc.IsRequired, suc.
SourceExpression
);
274
SqlStoredProcedureCall n = new SqlStoredProcedureCall(spc.Function, projection, args, spc.
SourceExpression
);
285
return new SqlUserColumn(suc.ClrType, suc.SqlType, suc.Query, suc.Name, suc.IsRequired, suc.
SourceExpression
);
288
return new SqlUserRow(row.RowType, row.SqlType, (SqlUserQuery)this.Visit(row.Query), row.
SourceExpression
);
291
return new SqlUnary(SqlNodeType.Treat, t.ClrType, t.SqlType, (SqlExpression)this.Visit(t.Operand), t.
SourceExpression
);
294
return new SqlUnary(uo.NodeType, uo.ClrType, uo.SqlType, (SqlExpression)this.Visit(uo.Operand), uo.Method, uo.
SourceExpression
);
302
return new SqlUpdate(ss, assignments, su.
SourceExpression
);
305
return new SqlAssign(this.VisitExpression(sa.LValue), this.VisitExpression(sa.RValue), sa.
SourceExpression
);
314
return new SqlSearchedCase(c.ClrType, whens, @else, c.
SourceExpression
);
323
return new SqlClientCase(c.ClrType, expr, whens, c.
SourceExpression
);
332
return new SqlSimpleCase(c.ClrType, expr, whens, c.
SourceExpression
);
342
return new SqlExprSet(xs.ClrType, exprs, xs.
SourceExpression
);
345
SqlBlock nb = new SqlBlock(block.
SourceExpression
);
366
between.
SourceExpression
371
SqlIn nin = new SqlIn(sin.ClrType, sin.SqlType, this.VisitExpression(sin.Expression), sin.Values, sin.
SourceExpression
);
383
like.
SourceExpression
391
return new SqlFunctionCall(fc.ClrType, fc.SqlType, fc.Name, args, fc.
SourceExpression
);
398
SqlTableValuedFunctionCall nfc = new SqlTableValuedFunctionCall(fc.RowType, fc.ClrType, fc.SqlType, fc.Name, args, fc.
SourceExpression
);
410
return new SqlMethodCall(mc.ClrType, mc.SqlType, mc.Method, this.VisitExpression(mc.Object), args, mc.
SourceExpression
);
430
this.VisitExpression(g.Key), this.VisitExpression(g.Group), g.
SourceExpression
435
return new SqlDiscriminatedType(dt.SqlType, this.VisitExpression(dt.Discriminator), dt.TargetType, dt.
SourceExpression
);
438
return new SqlLift(lift.ClrType, this.VisitExpression(lift.Expression), lift.
SourceExpression
);
441
return new SqlDiscriminatorOf(this.VisitExpression(dof.Object), dof.ClrType, dof.SqlType, dof.
SourceExpression
);
444
return new SqlIncludeScope(this.Visit(scope.Child), scope.
SourceExpression
);
SqlClient\Query\SqlExpander.cs (7)
83
return new SqlLink(link.Id, link.RowType, link.ClrType, link.SqlType, link.Expression, link.Member, exprs, expansion, link.
SourceExpression
);
89
this.sourceExpression = union.
SourceExpression
;
135
return factory.MethodCall(mcs[0].Method, mcs[0].Object, expandedArgs.ToArray(), mcs[0].
SourceExpression
);
163
return new SqlClientCase(scs[0].ClrType, expression, whens, scs[0].
SourceExpression
);
195
return factory.TypeCase(tcs[0].ClrType, tcs[0].RowType, discriminator, whens, tcs[0].
SourceExpression
);
232
return factory.New(cobs[0].MetaType, cobs[0].Constructor, arguments, cobs[0].ArgMembers, bindings, exprs[0].
SourceExpression
);
269
return new SqlLink(links[0].Id, links[0].RowType, links[0].ClrType, links[0].SqlType, links[0].Expression, links[0].Member, kexprs, expansion, links[0].
SourceExpression
);
SqlClient\Query\SqlFlattener.cs (2)
69
select.Selection = new SqlNop(select.Selection.ClrType, select.Selection.SqlType, select.
SourceExpression
);
144
c = new SqlColumn(expr.ClrType, expr.SqlType, name, null, expr, expr.
SourceExpression
);
SqlClient\Query\SqlLiftIndependentRowExpressions.cs (2)
110
SqlSelect ns = new SqlSelect(new SqlNop(cols[0].ClrType, cols[0].SqlType, sqlSource.
SourceExpression
), sqlSource, sqlSource.
SourceExpression
);
SqlClient\Query\SqlMethodCallConverter.cs (58)
695
return sql.Case(tc.ClrType, tc.Discriminator, matches, values, tc.
SourceExpression
);
722
return sql.FunctionCall(typeof(string), "REPLICATE", new SqlExpression[] { sox.Args[0], sox.Args[1] }, sox.
SourceExpression
);
728
Expression source = sox.
SourceExpression
;
782
Expression source = sox.
SourceExpression
;
900
Expression source = mc.
SourceExpression
;
913
returnValue = this.CreateComparison(mc.Arguments[0], mc.Arguments[1], mc.
SourceExpression
);
1003
sql.ValueFromObject(Activator.CreateInstance(clrType), mc.
SourceExpression
));
1011
Expression source = mc.
SourceExpression
;
1055
Expression source = mc.
SourceExpression
;
1117
Expression source = mc.
SourceExpression
;
1176
Expression source = mc.
SourceExpression
;
1274
returnValue = new SqlLift(targetType, expr, expr.
SourceExpression
);
1294
SqlExpression day = new SqlVariable(typeof(void), null, "DAY", bo.
SourceExpression
);
1295
SqlExpression ms = new SqlVariable(typeof(void), null, "MILLISECOND", bo.
SourceExpression
);
1300
new SqlExpression[] { day, start, end }, bo.
SourceExpression
);
1302
typeof(DateTime), "DATEADD", new SqlExpression[] { day, intDays, start }, bo.
SourceExpression
);
1304
new SqlExpression[] { ms, startPlusDays, end }, bo.
SourceExpression
);
1314
SqlExpression day = new SqlVariable(typeof(void), null, "DAY", bo.
SourceExpression
);
1315
SqlExpression ms = new SqlVariable(typeof(void), null, "MILLISECOND", bo.
SourceExpression
);
1316
SqlExpression us = new SqlVariable(typeof(void), null, "MICROSECOND", bo.
SourceExpression
);
1317
SqlExpression ns = new SqlVariable(typeof(void), null, "NANOSECOND", bo.
SourceExpression
);
1320
SqlExpression intDays = sql.FunctionCall(typeof(int), "DATEDIFF", new SqlExpression[] { day, start, end }, bo.
SourceExpression
);
1321
SqlExpression startPlusDays = sql.FunctionCall(typeof(DateTimeOffset), "DATEADD", new SqlExpression[] { day, intDays, start }, bo.
SourceExpression
);
1322
SqlExpression intMSec = sql.FunctionCall(typeof(int), "DATEDIFF", new SqlExpression[] { ms, startPlusDays, end }, bo.
SourceExpression
);
1323
SqlExpression startPlusDaysPlusMsec = sql.FunctionCall(typeof(DateTimeOffset), "DATEADD", new SqlExpression[] { ms, intMSec, startPlusDays }, bo.
SourceExpression
);
1324
SqlExpression intUSec = sql.FunctionCall(typeof(int), "DATEDIFF", new SqlExpression[] { us, startPlusDaysPlusMsec, end }, bo.
SourceExpression
);
1325
SqlExpression startPlusDaysPlusMsecPlusUSec = sql.FunctionCall(typeof(DateTimeOffset), "DATEADD", new SqlExpression[] { us, intUSec, startPlusDaysPlusMsec }, bo.
SourceExpression
);
1326
SqlExpression intNSec = sql.FunctionCall(typeof(int), "DATEDIFF", new SqlExpression[] { ns, startPlusDaysPlusMsecPlusUSec, end }, bo.
SourceExpression
);
1327
SqlExpression startPlusDaysPlusMsecPlusUSecPlusNSec = sql.FunctionCall(typeof(DateTimeOffset), "DATEADD", new SqlExpression[] { ns, intNSec, startPlusDaysPlusMsecPlusUSec }, bo.
SourceExpression
);
1366
sql.Unary(SqlNodeType.Negate, right, bo.
SourceExpression
),
1367
bo.
SourceExpression
, resultNullable
1371
sql.Unary(SqlNodeType.Negate, right, bo.
SourceExpression
),
1372
bo.
SourceExpression
, resultNullable
1381
return CreateDateTimeOffsetFromDateAndTicks(bo.Left, bo.Right, bo.
SourceExpression
, resultNullable);
1384
return CreateDateTimeFromDateAndTicks(bo.Left, bo.Right, bo.
SourceExpression
, resultNullable);
1392
Expression source = mc.
SourceExpression
;
1408
return sql.FunctionCall(mc.Method.ReturnType, "ROUND", mc.Arguments, mc.
SourceExpression
);
1421
sql.ValueFromObject(0, false, mc.
SourceExpression
),
1422
sql.ValueFromObject(1, false, mc.
SourceExpression
)
1424
mc.
SourceExpression
);
1430
sql.ValueFromObject(0, false, mc.
SourceExpression
)
1432
mc.
SourceExpression
);
1446
Expression source = mc.
SourceExpression
;
1500
Expression source = mc.
SourceExpression
;
1512
pattern = sql.ValueFromObject(patternText, true, pattern.
SourceExpression
);
1523
cp.
SourceExpression
1546
pattern = sql.ValueFromObject(patternText, true, pattern.
SourceExpression
);
1557
cp.
SourceExpression
1580
pattern = sql.ValueFromObject(patternText, true, pattern.
SourceExpression
);
1591
cp.
SourceExpression
1975
Expression source = mc.
SourceExpression
;
2166
Expression source = m.
SourceExpression
;
2329
return this.sql.ValueFromObject(0, false, exp.
SourceExpression
);
2382
Expression source = mc.
SourceExpression
;
2462
return CreateComparison(mc.Arguments[0], mc.Arguments[1], mc.
SourceExpression
);
2474
Expression source = mc.
SourceExpression
;
2490
cp.
SourceExpression
2496
SqlExpression escape = needsEscape ? sql.ValueFromObject("~", false, mc.
SourceExpression
) : null;
SqlClient\Query\SqlMethodTransformer.cs (2)
32
result = sql.ConvertToInt(sql.Divide(result, sql.ValueFromObject(2, expr.
SourceExpression
)));
65
result = sql.Divide(result, sql.ValueFromObject(2, expr.
SourceExpression
));
SqlClient\Query\SqlMultiplexer.cs (6)
53
SqlJoin join = new SqlJoin(SqlJoinType.OuterApply, this.outerSelect.From, alias, null, sms.
SourceExpression
);
63
SqlSelect countSelect = new SqlSelect(sql.Unary(SqlNodeType.Count, null, sms.
SourceExpression
), copyAlias, sms.
SourceExpression
);
68
SqlJoinedCollection jc = new SqlJoinedCollection(sms.ClrType, sms.SqlType, expr, count, sms.
SourceExpression
);
245
SqlParameter sp = new SqlParameter(clrType, expr.SqlType, "@x" + (this.parameters.Count + 1), expr.
SourceExpression
);
258
return new SqlLink(new object(), link.RowType, link.ClrType, link.SqlType, null, link.Member, exprs, null, link.
SourceExpression
);
SqlClient\Query\SqlOuterApplyReducer.cs (3)
145
this.annotations.Add(node, new SqlServerCompatibilityAnnotation(Strings.SourceExpressionAnnotation(node.
SourceExpression
), providers));
150
SqlSelect ns = new SqlSelect(new SqlNop(cols[0].ClrType, cols[0].SqlType, sqlSource.
SourceExpression
), sqlSource, sqlSource.
SourceExpression
);
SqlClient\Query\SqlParameterizer.cs (6)
79
new SqlParameter(typeof(int), typeProvider.From(typeof(int)), "@ROWCOUNT", block.
SourceExpression
)
116
p = new SqlParameter(cp.ClrType, cp.SqlType, this.parameterizer.CreateParameterName(), cp.
SourceExpression
);
120
p = new SqlParameter(cp.ClrType, this.timeProviderType, this.parameterizer.CreateParameterName(), cp.
SourceExpression
);
215
SqlParameter p = new SqlParameter(typeof(int?), this.parameterizer.typeProvider.From(typeof(int)), "@RETURN_VALUE", spc.
SourceExpression
);
236
SqlClient.Strings.MaxSizeNotSupported(node.
SourceExpression
), SqlProvider.ProviderMode.Sql2000));
291
SqlParameter p = new SqlParameter(cp.ClrType, cp.SqlType, this.parameterizer.CreateParameterName(), cp.
SourceExpression
);
SqlClient\Query\SqlReorderer.cs (5)
105
sourceExpression = tab.
SourceExpression
;
110
sourceExpression = tvf.
SourceExpression
;
248
sql.Value(typeof(int), this.typeProvider.From(typeof(int)), 1, false, rowNumber.
SourceExpression
)
263
SqlSelect select = new SqlSelect(new SqlNop(column.ClrType, column.SqlType, column.
SourceExpression
), this.currentSelect.From, this.currentSelect.
SourceExpression
);
SqlClient\Query\SqlResolver.cs (1)
255
SqlColumn c = new SqlColumn(found.ClrType, found.SqlType, name, this.found.MetaMember, new SqlColumnRef(this.found), row.
SourceExpression
);
SqlClient\Query\SqlRetyper.cs (9)
133
sin = new SqlIn(sin.ClrType, providerType, test, newValues, sin.
SourceExpression
);
172
when.Value = sql.UnaryConvert(when.Value.ClrType, type, when.Value, when.Value.
SourceExpression
);
176
c.Else = sql.UnaryConvert(c.Else.ClrType, type, c.Else, c.Else.
SourceExpression
);
194
when.Value = sql.UnaryConvert(when.Value.ClrType, type, when.Value, when.Value.
SourceExpression
);
232
val.IsClientSpecified, arg2.
SourceExpression
238
arg2 = sql.UnaryConvert(arg1.ClrType, arg1.SqlType, arg2, arg2.
SourceExpression
);
304
arg2 = sql.UnaryConvert(arg1.ClrType, arg1.SqlType, arg2, arg2.
SourceExpression
);
307
arg1 = sql.UnaryConvert(arg2.ClrType, arg2.SqlType, arg1, arg1.
SourceExpression
);
319
return sql.Value(expression.ClrType, newSqlType, clrValue, value.IsClientSpecified, value.
SourceExpression
);
SqlClient\Query\SqlRewriteScalarSubqueries.cs (2)
34
innerSelect.Top = this.sql.ValueFromObject(1, ss.
SourceExpression
);
38
this.currentSelect.From = new SqlJoin(SqlJoinType.OuterApply, this.currentSelect.From, alias, null, ss.
SourceExpression
);
SqlClient\Query\SqlTopReducer.cs (2)
33
select.Top = sql.Value(val.ClrType, val.SqlType, val.Value, false, val.
SourceExpression
);
38
this.annotations.Add(select.Top, new SqlServerCompatibilityAnnotation(Strings.SourceExpressionAnnotation(select.Top.
SourceExpression
), SqlProvider.ProviderMode.Sql2000));
SqlClient\Query\SqlTypeConverter.cs (9)
88
return sql.FunctionCall(uo.ClrType, "NCHAR", new SqlExpression[] { uo.Operand }, uo.
SourceExpression
);
101
return sql.FunctionCall(newClrType, sql.TypeProvider.From(typeof(int)), "UNICODE", new SqlExpression[] { uo.Operand }, uo.
SourceExpression
);
126
new SqlExpression[] { sql.ValueFromObject(30, false, expr.
SourceExpression
) },
127
expr.
SourceExpression
131
new SqlExpression[] { nvarchar, expr, sql.ValueFromObject(2, false, expr.
SourceExpression
) },
132
expr.
SourceExpression
139
new SqlWhen[] { new SqlWhen(expr, sql.ValueFromObject(true.ToString(), false, expr.
SourceExpression
)) },
140
sql.ValueFromObject(false.ToString(), false, expr.
SourceExpression
),
141
expr.
SourceExpression
SqlClient\Query\Translator.cs (7)
263
SqlSelect sel = (SqlSelect)qc.ConvertInner(expr, link.
SourceExpression
);
296
SqlSelect select = new SqlSelect(aref, alias, expr.
SourceExpression
);
304
SqlSelect select = new SqlSelect(aref, alias, expr.
SourceExpression
);
335
return sql.Binary(SqlNodeType.EQ, sql.ValueFromObject(0,expr.
SourceExpression
), sql.ValueFromObject(1,expr.
SourceExpression
));
373
exp = sql.Unary(SqlNodeType.Not, exp, exp.
SourceExpression
);
460
SqlExpression compare = sql.Unary(expr.NodeType, sql.DoNotVisitExpression(exprs[i]), expr.
SourceExpression
);
SqlClient\Reader\ObjectReaderCompiler.cs (5)
238
SqlColumn newcol = new SqlColumn(col.ClrType, col.SqlType, col.Name, col.MetaMember, null, col.
SourceExpression
);
388
if (node.
SourceExpression
.NodeType != ExpressionType.NewArrayInit &&
389
node.
SourceExpression
.NodeType != ExpressionType.NewArrayBounds) {
770
throw Error.CouldNotTranslateExpressionForReading(node.
SourceExpression
);
888
return this.GenerateMethodCall(new SqlMethodCall(m.ClrType, m.SqlType, pi.GetGetMethod(), m.Expression, null, m.
SourceExpression
));
SqlClient\SqlProvider.cs (1)
1671
SqlUserColumn col = new SqlUserColumn(rowType.Type, typeProvider.From(rowType.Type), suq, "", false, suq.
SourceExpression
);