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