368 references to Arguments
System.Data.Linq (368)
SqlClient\Common\SqlVisitor.cs (3)
576
for (int i = 0, n = mc.
Arguments
.Count; i < n; i++) {
577
mc.
Arguments
[i] = this.VisitExpression(mc.
Arguments
[i]);
SqlClient\Query\MethodCallConverter.cs (61)
47
return !call.Method.IsStatic && call.Method.Name == "CompareTo" && call.
Arguments
.Count == 1 && call.Method.ReturnType == typeof(int);
51
return call.Method.IsStatic && call.Method.Name == "Compare" && call.
Arguments
.Count > 1 && call.Method.ReturnType == typeof(int);
126
return mc.
Arguments
.Count == 2;
132
return mc.Method.Name == "Equals" && mc.
Arguments
.Count == 1 ||
133
mc.Method.Name == "GetType" && mc.
Arguments
.Count == 0;
152
bo = this.MakeCompareTo(call.Object, call.
Arguments
[0], bo.NodeType, iValue) ?? bo;
156
bo = this.MakeCompareTo(call.
Arguments
[0], call.
Arguments
[1], bo.NodeType, iValue) ?? bo;
163
SqlValue strValue = call.
Arguments
[1] as SqlValue;
166
bo = this.MakeCompareTo(call.
Arguments
[0], emptyStr, bo.NodeType, iValue) ?? bo;
169
bo = this.MakeCompareTo(call.
Arguments
[0], call.
Arguments
[1], bo.NodeType, iValue) ?? bo;
215
for (int i = 0, n = mc.
Arguments
.Count; i < n; i++) {
216
mc.
Arguments
[i] = this.VisitExpression(mc.
Arguments
[i]);
219
if (mc.Method.Name == "Equals" && mc.
Arguments
.Count == 2) {
220
return sql.Binary(SqlNodeType.EQ2V, mc.
Arguments
[0], mc.
Arguments
[1], mc.Method);
223
SqlClientArray arr = mc.
Arguments
[0] as SqlClientArray;
229
exprs = mc.
Arguments
;
259
return sql.Binary(SqlNodeType.EQ, mc.
Arguments
[0], mc.
Arguments
[1], mc.Method, mc.ClrType);
261
return sql.Binary(SqlNodeType.NE, mc.
Arguments
[0], mc.
Arguments
[1], mc.Method, mc.ClrType);
263
return sql.Binary(SqlNodeType.LT, mc.
Arguments
[0], mc.
Arguments
[1], mc.Method, mc.ClrType);
265
return sql.Binary(SqlNodeType.LE, mc.
Arguments
[0], mc.
Arguments
[1], mc.Method, mc.ClrType);
267
return sql.Binary(SqlNodeType.GT, mc.
Arguments
[0], mc.
Arguments
[1], mc.Method, mc.ClrType);
269
return sql.Binary(SqlNodeType.GE, mc.
Arguments
[0], mc.
Arguments
[1], mc.Method, mc.ClrType);
271
return sql.Binary(SqlNodeType.Mul, mc.
Arguments
[0], mc.
Arguments
[1], mc.Method, mc.ClrType);
273
return sql.Binary(SqlNodeType.Div, mc.
Arguments
[0], mc.
Arguments
[1], mc.Method, mc.ClrType);
275
return sql.Binary(SqlNodeType.Sub, mc.
Arguments
[0], mc.
Arguments
[1], mc.Method, mc.ClrType);
277
return sql.Binary(SqlNodeType.Add, mc.
Arguments
[0], mc.
Arguments
[1], mc.Method, mc.ClrType);
279
return sql.Binary(SqlNodeType.Mod, mc.
Arguments
[0], mc.
Arguments
[1], mc.Method, mc.ClrType);
281
return sql.Binary(SqlNodeType.BitAnd, mc.
Arguments
[0], mc.
Arguments
[1], mc.Method, mc.ClrType);
283
return sql.Binary(SqlNodeType.BitOr, mc.
Arguments
[0], mc.
Arguments
[1], mc.Method, mc.ClrType);
285
return sql.Binary(SqlNodeType.BitXor, mc.
Arguments
[0], mc.
Arguments
[1], mc.Method, mc.ClrType);
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);
296
if (mc.Method.Name == "Equals" && mc.
Arguments
.Count == 1) {
297
return sql.Binary(SqlNodeType.EQ, mc.Object, mc.
Arguments
[0]);
299
else if (mc.Method.Name == "GetType" && mc.
Arguments
.Count == 0) {
314
if (mc.
Arguments
[1].ClrType == mc.
Arguments
[2].ClrType) {
316
whens.Add(new SqlWhen(mc.
Arguments
[0], mc.
Arguments
[1]));
317
SqlExpression @else = mc.
Arguments
[2];
326
throw Error.IifReturnTypesMustBeEqual(mc.
Arguments
[1].ClrType.Name, mc.
Arguments
[2].ClrType.Name);
SqlClient\Query\QueryConverter.cs (3)
2670
if (mc.
Arguments
.Count==2 && mc.Method.Name=="op_Equality") {
2671
var r = mc.
Arguments
[1];
2674
v.SetSqlType(mc.
Arguments
[0].SqlType);
SqlClient\Query\SqlBinder.cs (3)
164
for (int i = 0, n = mc.
Arguments
.Count; i < n; i++) {
165
mc.
Arguments
[i] = this.FetchExpression(mc.
Arguments
[i]);
SqlClient\Query\SqlDuplicator.cs (3)
406
SqlExpression[] args = new SqlExpression[mc.
Arguments
.Count];
407
for (int i = 0, n = mc.
Arguments
.Count; i < n; i++) {
408
args[i] = this.VisitExpression(mc.
Arguments
[i]);
SqlClient\Query\SqlExpander.cs (2)
127
for (int i = 0; i < mcs[0].
Arguments
.Count; ++i) {
130
args.Add(mcs[j].
Arguments
[i]);
SqlClient\Query\SqlFormatter.cs (2)
1392
for (int i = 0, n = mc.
Arguments
.Count; i < n; i++) {
1394
this.Visit(mc.
Arguments
[i]);
SqlClient\Query\SqlMethodCallConverter.cs (278)
195
if (mc.
Arguments
.Count == 0) {
216
if (mc.Method.Name.StartsWith("DateDiff", StringComparison.Ordinal) && mc.
Arguments
.Count == 2) {
219
if (mc.
Arguments
.Count == 2) {
228
if (mc.
Arguments
.Count == 2) {
231
else if (mc.
Arguments
.Count == 3) {
257
if (mc.
Arguments
.Count == 1 && mc.
Arguments
[0].ClrType == typeof(TimeSpan)) {
281
if (mc.
Arguments
.Count == 1 && mc.
Arguments
[0].ClrType == typeof(TimeSpan)) {
307
if (mc.Method.IsStatic && mc.Method.DeclaringType == typeof(Convert) && mc.
Arguments
.Count == 1) {
321
if (mc.
Arguments
[0].ClrType == typeof(string) || mc.
Arguments
[0].ClrType == typeof(DateTime)) {
333
if (mc.
Arguments
.Count == 2) {
344
else if (mc.
Arguments
.Count == 1) {
374
if (mc.
Arguments
.Count == 1) {
380
if (mc.
Arguments
.Count == 1
381
|| mc.
Arguments
.Count == 2
382
|| mc.
Arguments
.Count == 3) {
387
if (mc.
Arguments
.Count == 2) {
395
if(mc.
Arguments
.Count == 1
396
|| mc.
Arguments
.Count == 2) {
405
if (mc.
Arguments
.Count == 0) {
411
if (mc.
Arguments
.Count == 1) {
434
if(mc.
Arguments
.Count == 1) {
439
if (mc.
Arguments
.Count == 1 || mc.
Arguments
.Count == 2) {
448
if (mc.
Arguments
.Count == 2) {
453
if (mc.
Arguments
[mc.
Arguments
.Count - 1].ClrType == typeof(MidpointRounding)
454
&& (mc.
Arguments
.Count == 2 || mc.
Arguments
.Count == 3)) {
465
if (mc.
Arguments
.Count == 1) {
903
for (int i = 0, n = mc.
Arguments
.Count; i < n; i++) {
904
mc.
Arguments
[i] = this.VisitExpression(mc.
Arguments
[i]);
908
if (mc.SqlType.CanBeColumn && mc.
Arguments
[0].SqlType.CanBeColumn) {
909
returnValue = sql.ConvertTo(mc.ClrType, mc.
Arguments
[0]);
912
else if (mc.Method.Name == "Compare" && mc.
Arguments
.Count == 2 && mc.Method.ReturnType == typeof(int)) {
913
returnValue = this.CreateComparison(mc.
Arguments
[0], mc.
Arguments
[1], mc.SourceExpression);
949
if (mc.Method.Name == "Equals" && mc.
Arguments
.Count == 1) {
950
return sql.Binary(SqlNodeType.EQ, mc.Object, mc.
Arguments
[0]);
956
else if (mc.Method.Name == "ToString" && mc.
Arguments
.Count == 0) {
998
if (mc.
Arguments
.Count == 0) {
1006
return sql.Binary(SqlNodeType.Coalesce, mc.Object, mc.
Arguments
[0]);
1014
if (name.StartsWith("DateDiff", StringComparison.Ordinal) && mc.
Arguments
.Count == 2) {
1017
SqlExpression start = mc.
Arguments
[0];
1018
SqlExpression end = mc.
Arguments
[1];
1026
if (mc.
Arguments
.Count == 2) {
1027
return sql.Like(mc.
Arguments
[0], mc.
Arguments
[1], null, source);
1029
else if (mc.
Arguments
.Count == 3) {
1030
return sql.Like(mc.
Arguments
[0], mc.
Arguments
[1], sql.ConvertTo(typeof(string), mc.
Arguments
[2]), source);
1034
SqlExpression length = sql.DATALENGTH(mc.
Arguments
[0]);
1057
returnValue = CreateComparison(mc.Object, mc.
Arguments
[0], source);
1059
else if ((mc.Method.Name == "Add" && mc.
Arguments
.Count == 1 && mc.
Arguments
[0].ClrType == typeof(TimeSpan))
1062
SqlExpression sqlTicks = mc.
Arguments
[0];
1063
if (SqlFactory.IsSqlTimeType(mc.
Arguments
[0]))
1065
SqlExpression ns = this.sql.DATEPART("NANOSECOND", mc.
Arguments
[0]);
1066
SqlExpression ss = this.sql.DATEPART("SECOND", mc.
Arguments
[0]);
1067
SqlExpression mm = this.sql.DATEPART("MINUTE", mc.
Arguments
[0]);
1068
SqlExpression hh = this.sql.DATEPART("HOUR", mc.
Arguments
[0]);
1084
returnValue = sql.DATEADD("MONTH", mc.
Arguments
[0], mc.Object);
1088
returnValue = sql.DATEADD("YEAR", mc.
Arguments
[0], mc.Object);
1092
returnValue = this.CreateDateTimeFromDateAndMs(mc.Object, mc.
Arguments
[0], source);
1097
SqlExpression ms = sql.Multiply(mc.
Arguments
[0], 1000);
1101
SqlExpression ms = sql.Multiply(mc.
Arguments
[0], 60000);
1105
SqlExpression ms = sql.Multiply(mc.
Arguments
[0], 3600000);
1109
SqlExpression ms = sql.Multiply(mc.
Arguments
[0], 86400000);
1119
returnValue = CreateComparison(mc.Object, mc.
Arguments
[0], source);
1121
else if ((mc.Method.Name == "Add" && mc.
Arguments
.Count == 1 && mc.
Arguments
[0].ClrType == typeof(TimeSpan))
1123
SqlExpression ns = sql.DATEPART("NANOSECOND", mc.
Arguments
[0]);
1124
SqlExpression ss = sql.DATEPART("SECOND", mc.
Arguments
[0]);
1125
SqlExpression mi = sql.DATEPART("MINUTE", mc.
Arguments
[0]);
1126
SqlExpression hh = sql.DATEPART("HOUR", mc.
Arguments
[0]);
1143
returnValue = sql.DATETIMEOFFSETADD("MONTH", mc.
Arguments
[0], mc.Object);
1147
returnValue = sql.DATETIMEOFFSETADD("YEAR", mc.
Arguments
[0], mc.Object);
1151
returnValue = this.CreateDateTimeOffsetFromDateAndMs(mc.Object, mc.
Arguments
[0], source);
1156
SqlExpression ms = sql.Multiply(mc.
Arguments
[0], 1000);
1160
SqlExpression ms = sql.Multiply(mc.
Arguments
[0], 60000);
1164
SqlExpression ms = sql.Multiply(mc.
Arguments
[0], 3600000);
1168
SqlExpression ms = sql.Multiply(mc.
Arguments
[0], 86400000);
1178
returnValue = sql.Add(mc.Object, mc.
Arguments
[0]);
1181
returnValue = sql.Subtract(mc.Object, mc.
Arguments
[0]);
1184
returnValue = CreateComparison(mc.Object, mc.
Arguments
[0], source);
1200
if (mc.
Arguments
.Count == 1) {
1201
SqlExpression expr = mc.
Arguments
[0];
1394
if (mc.
Arguments
.Count == 2) {
1397
return sql.Binary(SqlNodeType.Mul, mc.
Arguments
[0], mc.
Arguments
[1]);
1399
return sql.Binary(SqlNodeType.Div, mc.
Arguments
[0], mc.
Arguments
[1]);
1401
return sql.Binary(SqlNodeType.Sub, mc.
Arguments
[0], mc.
Arguments
[1]);
1403
return sql.Binary(SqlNodeType.Add, mc.
Arguments
[0], mc.
Arguments
[1]);
1405
return sql.Binary(SqlNodeType.Mod, mc.
Arguments
[0], mc.
Arguments
[1]);
1408
return sql.FunctionCall(mc.Method.ReturnType, "ROUND", mc.
Arguments
, mc.SourceExpression);
1411
else if (mc.
Arguments
.Count == 1) {
1414
return sql.Unary(SqlNodeType.Negate, mc.
Arguments
[0], source);
1420
mc.
Arguments
[0],
1429
mc.
Arguments
[0],
1449
SqlClientArray arr = mc.
Arguments
[0] as SqlClientArray;
1455
exprs = mc.
Arguments
;
1479
else if ((mc.Method.Name == "Equals") && (mc.
Arguments
.Count == 2)) {
1480
returnValue = sql.Binary(SqlNodeType.EQ2V, mc.
Arguments
[0], mc.
Arguments
[1]);
1482
else if ((mc.Method.Name == "Compare") && (mc.
Arguments
.Count == 2)) {
1483
returnValue = CreateComparison(mc.
Arguments
[0], mc.
Arguments
[1], source);
1504
if (mc.
Arguments
.Count == 1) {
1505
SqlExpression pattern = mc.
Arguments
[0];
1538
if (mc.
Arguments
.Count == 1) {
1539
SqlExpression pattern = mc.
Arguments
[0];
1572
if (mc.
Arguments
.Count == 1) {
1573
SqlExpression pattern = mc.
Arguments
[0];
1606
if (mc.
Arguments
.Count == 1) {
1607
if (mc.
Arguments
[0] is SqlValue && ((SqlValue)mc.
Arguments
[0]).Value == null) {
1611
SqlExpression lenZeroExpr = sql.Binary(SqlNodeType.EQ, sql.CLRLENGTH(mc.
Arguments
[0]), sql.ValueFromObject(0, source));
1615
mc.
Arguments
[0],
1621
else if (mc.
Arguments
.Count == 2) {
1622
if (mc.
Arguments
[0] is SqlValue && ((SqlValue)mc.
Arguments
[0]).Value == null) {
1625
if (mc.
Arguments
[1].ClrType == typeof(StringComparison)) {
1630
SqlExpression lenZeroExpr = sql.Binary(SqlNodeType.EQ, sql.CLRLENGTH(mc.
Arguments
[0]), sql.ValueFromObject(0, source));
1631
lenZeroExpr = sql.AndAccumulate(lenZeroExpr, sql.Binary(SqlNodeType.LE, sql.Add(mc.
Arguments
[1], 1), sql.CLRLENGTH(mc.Object)));
1632
SqlWhen when = new SqlWhen(lenZeroExpr, mc.
Arguments
[1]);
1635
mc.
Arguments
[0],
1637
sql.Add(mc.
Arguments
[1], 1)
1642
else if (mc.
Arguments
.Count == 3) {
1643
if (mc.
Arguments
[0] is SqlValue && ((SqlValue)mc.
Arguments
[0]).Value == null) {
1646
if (mc.
Arguments
[2].ClrType == typeof(StringComparison)) {
1653
SqlExpression lenZeroExpr = sql.Binary(SqlNodeType.EQ, sql.CLRLENGTH(mc.
Arguments
[0]), sql.ValueFromObject(0, source));
1654
lenZeroExpr = sql.AndAccumulate(lenZeroExpr, sql.Binary(SqlNodeType.LE, sql.Add(mc.
Arguments
[1], 1), sql.CLRLENGTH(mc.Object)));
1655
SqlWhen when = new SqlWhen(lenZeroExpr, mc.
Arguments
[1]);
1661
sql.Add(mc.
Arguments
[1], mc.
Arguments
[2])
1666
mc.
Arguments
[0],
1668
sql.Add(mc.
Arguments
[1], 1)
1675
if (mc.
Arguments
.Count == 1) {
1680
SqlExpression exprPart = mc.
Arguments
[0];
1697
SqlExpression lenZeroExpr = sql.Binary(SqlNodeType.EQ, sql.CLRLENGTH(mc.
Arguments
[0]), sql.ValueFromObject(0, source));
1703
else if (mc.
Arguments
.Count == 2) {
1709
if (mc.
Arguments
[1].ClrType == typeof(StringComparison)) {
1713
SqlExpression part = mc.
Arguments
[0];
1717
SqlExpression i = mc.
Arguments
[1];
1732
SqlExpression lenZeroExpr = sql.Binary(SqlNodeType.EQ, sql.CLRLENGTH(mc.
Arguments
[0]), sql.ValueFromObject(0, source));
1733
lenZeroExpr = sql.AndAccumulate(lenZeroExpr, sql.Binary(SqlNodeType.LE, sql.Add(mc.
Arguments
[1], 1), sql.CLRLENGTH(s)));
1734
SqlWhen whenLenZero = new SqlWhen(lenZeroExpr, mc.
Arguments
[1]);
1739
else if (mc.
Arguments
.Count == 3) {
1745
if (mc.
Arguments
[2].ClrType == typeof(StringComparison)) {
1749
SqlExpression part = mc.
Arguments
[0];
1753
SqlExpression i = mc.
Arguments
[1];
1754
SqlExpression count = mc.
Arguments
[2];
1770
SqlExpression lenZeroExpr = sql.Binary(SqlNodeType.EQ, sql.CLRLENGTH(mc.
Arguments
[0]), sql.ValueFromObject(0, source));
1771
lenZeroExpr = sql.AndAccumulate(lenZeroExpr, sql.Binary(SqlNodeType.LE, sql.Add(mc.
Arguments
[1], 1), sql.CLRLENGTH(s)));
1772
SqlWhen whenLenZero = new SqlWhen(lenZeroExpr, mc.
Arguments
[1]);
1780
if (mc.
Arguments
.Count == 2) {
1781
if (mc.
Arguments
[1] is SqlValue && ((SqlValue)mc.
Arguments
[1]).Value == null) {
1788
sql.Add(mc.
Arguments
[0], 1),
1790
mc.
Arguments
[1]
1798
SqlExpression insertingAtEnd = sql.Binary(SqlNodeType.EQ, sql.CLRLENGTH(mc.Object), mc.
Arguments
[0]);
1799
SqlExpression stringConcat = sql.Concat(mc.Object, mc.
Arguments
[1]);
1805
if (mc.
Arguments
.Count == 1) {
1811
SqlExpression exprI = mc.
Arguments
[0];
1820
else if (mc.
Arguments
.Count == 2) {
1826
SqlExpression exprI = mc.
Arguments
[0];
1827
SqlExpression exprC = mc.
Arguments
[1];
1838
if (mc.
Arguments
.Count == 1) {
1844
SqlExpression exprI = mc.
Arguments
[0];
1853
else if (mc.
Arguments
.Count == 2) {
1859
SqlExpression exprI = mc.
Arguments
[0];
1860
SqlExpression exprC = mc.
Arguments
[1];
1872
if (mc.
Arguments
.Count == 1) {
1877
sql.Add(mc.
Arguments
[0], 1),
1883
else if (mc.
Arguments
.Count == 2) {
1888
sql.Add(mc.
Arguments
[0], 1),
1889
mc.
Arguments
[1],
1896
if (mc.
Arguments
[0] is SqlValue && ((SqlValue)mc.
Arguments
[0]).Value == null) {
1899
if (mc.
Arguments
[1] is SqlValue && ((SqlValue)mc.
Arguments
[1]).Value == null) {
1906
mc.
Arguments
[0],
1907
mc.
Arguments
[1]
1911
if (mc.
Arguments
.Count == 1) {
1916
sql.Add(mc.
Arguments
[0], 1),
1921
else if (mc.
Arguments
.Count == 2) {
1926
sql.Add(mc.
Arguments
[0], 1),
1927
mc.
Arguments
[1]
1933
if (mc.
Arguments
.Count == 0) {
1943
if (mc.
Arguments
.Count == 0) {
1948
if (mc.
Arguments
.Count == 0) {
1954
if (mc.
Arguments
.Count == 1) {
1957
sql.Add( mc.
Arguments
[0], 1),
1963
if (mc.
Arguments
.Count == 1) {
1964
if (mc.
Arguments
[0] is SqlValue && ((SqlValue)mc.
Arguments
[0]).Value == null) {
1967
return CreateComparison(mc.Object, mc.
Arguments
[0], source);
1978
if (mc.
Arguments
.Count == 1) {
1979
return sql.FunctionCall(mc.
Arguments
[0].ClrType, "ABS", new SqlExpression[] { mc.
Arguments
[0] }, source);
1983
if (mc.
Arguments
.Count == 1) {
1984
return this.CreateFunctionCallStatic1(typeof(double), "ACOS", mc.
Arguments
, source);
1988
if (mc.
Arguments
.Count == 1) {
1989
return this.CreateFunctionCallStatic1(typeof(double), "ASIN", mc.
Arguments
, source);
1993
if (mc.
Arguments
.Count == 1) {
1994
return this.CreateFunctionCallStatic1(typeof(double), "ATAN", mc.
Arguments
, source);
1998
if (mc.
Arguments
.Count == 2) {
1999
return this.CreateFunctionCallStatic2(typeof(double), "ATN2", mc.
Arguments
, source);
2003
if (mc.
Arguments
.Count == 2) {
2004
return sql.Multiply(sql.ConvertToBigint(mc.
Arguments
[0]), sql.ConvertToBigint(mc.
Arguments
[1]));
2008
if (mc.
Arguments
.Count == 1) {
2009
return this.CreateFunctionCallStatic1(mc.
Arguments
[0].ClrType, "CEILING", mc.
Arguments
, source);
2013
if (mc.
Arguments
.Count == 1) {
2014
return this.CreateFunctionCallStatic1(typeof(double), "COS", mc.
Arguments
, source);
2018
if (mc.
Arguments
.Count == 1) {
2019
SqlExpression x = mc.
Arguments
[0];
2028
if (mc.
Arguments
.Count == 1) {
2029
return this.CreateFunctionCallStatic1(typeof(double), "EXP", mc.
Arguments
, source);
2033
if (mc.
Arguments
.Count == 1) {
2034
return this.CreateFunctionCallStatic1(mc.
Arguments
[0].ClrType, "FLOOR", mc.
Arguments
, source);
2039
if (mc.
Arguments
.Count == 1) {
2040
return this.CreateFunctionCallStatic1(typeof(double), "LOG", mc.
Arguments
, source);
2042
else if (mc.
Arguments
.Count == 2) {
2044
SqlExpression log1 = sql.FunctionCall(typeof(double), "LOG", new SqlExpression[] { mc.
Arguments
[0] }, source);
2045
SqlExpression log2 = sql.FunctionCall(typeof(double), "LOG", new SqlExpression[] { mc.
Arguments
[1] }, source);
2050
if (mc.
Arguments
.Count == 1) {
2051
return this.CreateFunctionCallStatic1(typeof(double), "LOG10", mc.
Arguments
, source);
2055
if (mc.
Arguments
.Count == 2) {
2057
SqlExpression a = mc.
Arguments
[0];
2058
SqlExpression b = mc.
Arguments
[1];
2064
if (mc.
Arguments
.Count == 2) {
2066
SqlExpression a = mc.
Arguments
[0];
2067
SqlExpression b = mc.
Arguments
[1];
2073
if (mc.
Arguments
.Count == 2) {
2074
return this.CreateFunctionCallStatic2(mc.ClrType, "POWER", mc.
Arguments
, source);
2078
int nParams = mc.
Arguments
.Count;
2079
if ((mc.
Arguments
[nParams - 1].ClrType != typeof(MidpointRounding))) {
2083
SqlExpression x = mc.
Arguments
[0];
2089
i = mc.
Arguments
[1];
2091
SqlExpression roundingMethod = mc.
Arguments
[nParams - 1];
2114
if (mc.
Arguments
.Count == 1) {
2115
return sql.FunctionCall(typeof(int), "SIGN", new SqlExpression[] { mc.
Arguments
[0] }, source);
2119
if (mc.
Arguments
.Count == 1) {
2120
return this.CreateFunctionCallStatic1(typeof(double), "SIN", mc.
Arguments
, source);
2124
if (mc.
Arguments
.Count == 1) {
2125
SqlExpression x = mc.
Arguments
[0];
2133
if (mc.
Arguments
.Count == 1) {
2134
return this.CreateFunctionCallStatic1(typeof(double), "SQRT", mc.
Arguments
, source);
2138
if (mc.
Arguments
.Count == 1) {
2139
return this.CreateFunctionCallStatic1(typeof(double), "TAN", mc.
Arguments
, source);
2143
if (mc.
Arguments
.Count == 1) {
2144
SqlExpression x = mc.
Arguments
[0];
2152
if (mc.
Arguments
.Count == 1) {
2154
SqlExpression x = mc.
Arguments
[0];
2383
if (mc.
Arguments
.Count == 1) {
2384
SqlExpression expr = mc.
Arguments
[0];
2448
else if (mc.ClrType != mc.
Arguments
[0].ClrType) {
2453
return mc.
Arguments
[0];
2461
if (mc.
Arguments
.Count >= 2) {
2462
return CreateComparison(mc.
Arguments
[0], mc.
Arguments
[1], mc.SourceExpression);
2469
Debug.Assert(mc.
Arguments
.Count == 3);
2470
Debug.Assert(mc.
Arguments
[0].ClrType == typeof(string));
2471
Debug.Assert(mc.
Arguments
[1].ClrType == typeof(string));
2475
SqlExpression pattern = mc.
Arguments
[1];
2497
return sql.Like(mc.
Arguments
[0], pattern, escape, source);
SqlClient\Query\SqlNamer.cs (3)
211
for (int i = 0, n = mc.
Arguments
.Count; i < n; i++) {
212
mc.
Arguments
[i] = this.VisitNamedExpression(mc.
Arguments
[i], pis[i].Name);
SqlClient\Reader\ObjectReaderCompiler.cs (10)
448
for (int i = 0, n = mc.
Arguments
.Count; i < n; i++) {
449
if (!CanBeCompared(mc.
Arguments
[0])) {
631
if (mc1.
Arguments
.Count != mc2.
Arguments
.Count) {
634
for (int i = 0, n = mc1.
Arguments
.Count; i < n; i++) {
635
if (!AreSimilar(mc1.
Arguments
[i], mc2.
Arguments
[i])) {
902
for (int i = 0, n = mc.
Arguments
.Count; i < n; i++) {
907
this.GenerateExpressionForType(mc.
Arguments
[i], pType);
913
this.GenerateExpressionForType(mc.
Arguments
[i], pType);