117 references to Args
System.Data.Linq (117)
SqlClient\Common\SqlVisitor.cs (3)
355
for (int i = 0, n = sox.
Args
.Count; i < n; i++) {
356
sox.
Args
[i] = this.VisitExpression(sox.
Args
[i]);
SqlClient\Query\QueryConverter.cs (2)
1014
if (!CanSkipOnSelection(sn.
Args
[i])) {
2821
foreach (SqlExpression expr in sox.
Args
) {
SqlClient\Query\SqlBinder.cs (5)
662
for (int i = 0, n = sox.
Args
.Count; i < n; i++) {
667
sox.
Args
[i] = this.VisitExpression(sox.
Args
[i]);
670
sox.
Args
[i] = this.FetchExpression(sox.
Args
[i]);
SqlClient\Query\SqlDuplicator.cs (2)
121
SqlExpression[] args = new SqlExpression[sox.
Args
.Count];
124
args[i] = this.VisitExpression(sox.
Args
[i]);
SqlClient\Query\SqlExpander.cs (2)
224
SqlExpression[] arguments = new SqlExpression[cobs[0].
Args
.Count];
228
mexprs.Add(cobs[i].
Args
[m]);
SqlClient\Query\SqlFlattener.cs (1)
191
foreach (SqlExpression arg in sn.
Args
) {
SqlClient\Query\SqlFormatter.cs (2)
706
for (int i = 0, n = sox.
Args
.Count; i < n; i++)
708
SqlExpression argExpr = sox.
Args
[i];
SqlClient\Query\SqlMethodCallConverter.cs (84)
66
return snew.
Args
.Count == 2 && snew.
Args
[0].ClrType == typeof(char) && snew.
Args
[1].ClrType == typeof(int);
71
&& sox.
Args
.Count >= 3
72
&& sox.
Args
[0].ClrType == typeof(int)
73
&& sox.
Args
[1].ClrType == typeof(int)
74
&& sox.
Args
[2].ClrType == typeof(int)) {
75
if (sox.
Args
.Count == 3) {
78
if (sox.
Args
.Count >= 6 &&
79
sox.
Args
[3].ClrType == typeof(int) && sox.
Args
[4].ClrType == typeof(int) && sox.
Args
[5].ClrType == typeof(int)) {
80
if (sox.
Args
.Count == 6) {
83
if ((sox.
Args
.Count == 7) && (sox.
Args
[6].ClrType == typeof(int))) {
92
if (sox.
Args
.Count == 1) {
95
else if (sox.
Args
.Count == 3) {
99
if (sox.
Args
.Count == 4) {
102
else if (sox.
Args
.Count == 5) {
720
if (sox.ClrType == typeof(string) && sox.
Args
.Count == 2
721
&& sox.
Args
[0].ClrType == typeof(char) && sox.
Args
[1].ClrType == typeof(int)) {
722
return sql.FunctionCall(typeof(string), "REPLICATE", new SqlExpression[] { sox.
Args
[0], sox.
Args
[1] }, sox.SourceExpression);
732
if (sox.ClrType == typeof(DateTime) && sox.
Args
.Count >= 3 &&
733
sox.
Args
[0].ClrType == typeof(int) && sox.
Args
[1].ClrType == typeof(int) && sox.
Args
[2].ClrType == typeof(int)) {
736
SqlExpression year = sql.FunctionCall(typeof(string), "CONVERT", new SqlExpression[2] { char4, sox.
Args
[0] }, source);
737
SqlExpression month = sql.FunctionCall(typeof(string), "CONVERT", new SqlExpression[2] { char2, sox.
Args
[1] }, source);
738
SqlExpression day = sql.FunctionCall(typeof(string), "CONVERT", new SqlExpression[2] { char2, sox.
Args
[2] }, source);
740
if (sox.
Args
.Count == 3) {
744
if (sox.
Args
.Count >= 6 &&
745
sox.
Args
[3].ClrType == typeof(int) && sox.
Args
[4].ClrType == typeof(int) && sox.
Args
[5].ClrType == typeof(int)) {
749
SqlExpression hour = sql.FunctionCall(typeof(string), "CONVERT", new SqlExpression[2] { char2, sox.
Args
[3] }, source);
750
SqlExpression minute = sql.FunctionCall(typeof(string), "CONVERT", new SqlExpression[2] { char2, sox.
Args
[4] }, source);
751
SqlExpression second = sql.FunctionCall(typeof(string), "CONVERT", new SqlExpression[2] { char2, sox.
Args
[5] }, source);
755
if (sox.
Args
.Count == 6) {
758
if ((sox.
Args
.Count == 7) && (sox.
Args
[6].ClrType == typeof(int))) {
762
sql.Add(sql.ValueFromObject(1000, false, source),sox.
Args
[6])}, source);
786
if (sox.
Args
.Count == 1 && sox.
Args
[0].ClrType == typeof(DateTime)) {
788
new SqlExpression[2] { sox.
Args
[0], sql.ValueFromObject(0, false, source) },
793
if (sox.
Args
.Count == 2 && sox.
Args
[0].ClrType == typeof(DateTime) && sox.
Args
[1].ClrType == typeof(TimeSpan)) {
797
sox.
Args
[0],
798
sql.ConvertToInt(sql.ConvertToBigint(sql.Divide(sql.ConvertTimeToDouble(sox.
Args
[1]), TimeSpan.TicksPerMinute)))
804
if (sox.
Args
.Count >= 7 &&
805
sox.
Args
[0].ClrType == typeof(int) && sox.
Args
[1].ClrType == typeof(int) && sox.
Args
[2].ClrType == typeof(int) &&
806
sox.
Args
[3].ClrType == typeof(int) && sox.
Args
[4].ClrType == typeof(int) && sox.
Args
[5].ClrType == typeof(int)) {
814
sql.Add(sql.ValueFromObject(10000, false, source),sox.
Args
[0])}, source);
817
SqlExpression month = sql.FunctionCall(typeof(string), "CONVERT", new SqlExpression[2] { char2, sox.
Args
[1] }, source);
818
SqlExpression day = sql.FunctionCall(typeof(string), "CONVERT", new SqlExpression[2] { char2, sox.
Args
[2] }, source);
820
SqlExpression hour = sql.FunctionCall(typeof(string), "CONVERT", new SqlExpression[2] { char2, sox.
Args
[3] }, source);
821
SqlExpression minute = sql.FunctionCall(typeof(string), "CONVERT", new SqlExpression[2] { char2, sox.
Args
[4] }, source);
822
SqlExpression second = sql.FunctionCall(typeof(string), "CONVERT", new SqlExpression[2] { char2, sox.
Args
[5] }, source);
830
if (sox.
Args
.Count == 7 && sox.
Args
[6].ClrType == typeof(TimeSpan)) {
835
else if (sox.
Args
.Count == 8 && sox.
Args
[6].ClrType == typeof(int) && sox.
Args
[7].ClrType == typeof(TimeSpan)) {
839
sql.Add(sql.ValueFromObject(1000, false, source),sox.
Args
[6])}, source);
852
sql.ConvertToInt(sql.ConvertToBigint(sql.Divide(sql.ConvertTimeToDouble(sox.
Args
[timeSpanIndex]), TimeSpan.TicksPerMinute)))
861
if (sox.
Args
.Count == 1) {
862
return sql.ConvertTo(typeof(TimeSpan), sox.
Args
[0]);
864
else if (sox.
Args
.Count == 3) {
866
SqlExpression hours = sql.ConvertToBigint(sox.
Args
[0]);
867
SqlExpression minutes = sql.ConvertToBigint(sox.
Args
[1]);
868
SqlExpression seconds = sql.ConvertToBigint(sox.
Args
[2]);
875
SqlExpression days = sql.ConvertToBigint(sox.
Args
[0]);
876
SqlExpression hours = sql.ConvertToBigint(sox.
Args
[1]);
877
SqlExpression minutes = sql.ConvertToBigint(sox.
Args
[2]);
878
SqlExpression seconds = sql.ConvertToBigint(sox.
Args
[3]);
884
if (sox.
Args
.Count == 4) {
888
else if (sox.
Args
.Count == 5) {
890
SqlExpression milliseconds = sql.ConvertToBigint(sox.
Args
[4]);
SqlClient\Query\SqlNamer.cs (6)
177
for (int i = 0, n = sox.
Args
.Count; i < n; i++) {
178
sox.
Args
[i] = this.VisitNamedExpression(sox.
Args
[i], pis[i].Name);
182
for (int i = 0, n = sox.
Args
.Count; i < n; i++) {
183
sox.
Args
[i] = this.VisitExpression(sox.
Args
[i]);
SqlClient\Reader\ObjectReaderCompiler.cs (10)
351
for (int i = 0, n = new1.
Args
.Count; i < n; i++) {
352
if (!CanBeCompared(new1.
Args
[i])) {
481
if (new1.
Args
.Count != new2.
Args
.Count ||
485
for (int i = 0, n = new1.
Args
.Count; i < n; i++) {
486
if (!AreSimilar(new1.
Args
[i], new2.
Args
[i])) {
939
if (sn.
Args
.Count > 0) {
941
for (int i = 0, n = sn.
Args
.Count; i < n; i++) {
942
this.GenerateExpressionForType(sn.
Args
[i], pis[i].ParameterType);