-
Notifications
You must be signed in to change notification settings - Fork 548
/
Copy pathSqlFunctions.cs
1627 lines (1484 loc) · 99.2 KB
/
SqlFunctions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
namespace System.Data.Entity.SqlServer
{
using System.Collections.Generic;
using System.Data.Entity.SqlServer.Resources;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Linq.Expressions;
/// <summary>
/// Contains function stubs that expose SqlServer methods in Linq to Entities.
/// </summary>
public static class SqlFunctions
{
/// <summary>Returns the checksum of the values in a collection. Null values are ignored.</summary>
/// <returns>The checksum computed from the input collection.</returns>
/// <param name="arg">The collection of values over which the checksum is computed.</param>
[DbFunction("SqlServer", "CHECKSUM_AGG")]
public static Int32? ChecksumAggregate(IEnumerable<Int32> arg)
{
return BootstrapFunction(a => ChecksumAggregate(a), arg);
}
/// <summary>Returns the checksum of the values in a collection. Null values are ignored.</summary>
/// <returns>The checksum computed from the input collection.</returns>
/// <param name="arg">The collection of values over which the checksum is computed.</param>
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[DbFunction("SqlServer", "CHECKSUM_AGG")]
public static Int32? ChecksumAggregate(IEnumerable<Int32?> arg)
{
return BootstrapFunction(a => ChecksumAggregate(a), arg);
}
private static TOut BootstrapFunction<TIn, TOut>(Expression<Func<IEnumerable<TIn>, TOut>> methodExpression, IEnumerable<TIn> arg)
{
var asQueryable = arg as IQueryable;
if (asQueryable != null)
{
// We could use methodExpression directly here, but it seems marginally better (and consistent with
// previous versions) to use a constant expression for the parameter.
return asQueryable.Provider.Execute<TOut>(
Expression.Call(((MethodCallExpression)methodExpression.Body).Method, Expression.Constant(arg)));
}
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the ASCII code value of the left-most character of a character expression.</summary>
/// <returns>The ASCII code of the first character in the input string.</returns>
/// <param name="arg">A valid string.</param>
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Ascii")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "ASCII")]
public static Int32? Ascii(String arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the character that corresponds to the specified integer ASCII value.</summary>
/// <returns>The character that corresponds to the specified ASCII value.</returns>
/// <param name="arg">An ASCII code.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "CHAR")]
public static String Char(Int32? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the starting position of one expression found within another expression.</summary>
/// <returns>The starting position of toFind if it is found in toSearch .</returns>
/// <param name="toFind">The string expression to be found.</param>
/// <param name="toSearch">The string expression to be searched.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "toFind")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "toSearch")]
[DbFunction("SqlServer", "CHARINDEX")]
public static Int32? CharIndex(String toFind, String toSearch)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the starting position of one expression found within another expression.</summary>
/// <returns>The starting position of toFind if it is found in toSearch .</returns>
/// <param name="toFind">The string expression to be found.</param>
/// <param name="toSearch">The string expression to be searched.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "toFind")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "toSearch")]
[DbFunction("SqlServer", "CHARINDEX")]
public static Int32? CharIndex(Byte[] toFind, Byte[] toSearch)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the starting position of one expression found within another expression.</summary>
/// <returns>The starting position of toFind if it is found in toSearch .</returns>
/// <param name="toFind">The string expression to be found.</param>
/// <param name="toSearch">The string expression to be searched.</param>
/// <param name="startLocation">The character position in toSearch where searching begins.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "toFind")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "toSearch")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "startLocation")]
[DbFunction("SqlServer", "CHARINDEX")]
public static Int32? CharIndex(String toFind, String toSearch, Int32? startLocation)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the starting position of one expression found within another expression.</summary>
/// <returns>The starting position of toFind if it is found in toSearch .</returns>
/// <param name="toFind">The string expression to be found.</param>
/// <param name="toSearch">The string expression to be searched.</param>
/// <param name="startLocation">The character position in toSearch where searching begins.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "toFind")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "toSearch")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "startLocation")]
[DbFunction("SqlServer", "CHARINDEX")]
public static Int32? CharIndex(Byte[] toFind, Byte[] toSearch, Int32? startLocation)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the starting position of one expression found within another expression.</summary>
/// <returns>
/// A <see cref="T:System.Nullable`1" /> of <see cref="T:System.Int64" /> value that is the starting position of toFind if it is found in toSearch .
/// </returns>
/// <param name="toFind">The string expression to be found.</param>
/// <param name="toSearch">The string expression to be searched.</param>
/// <param name="startLocation">The character position in toSearch where searching begins.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "toFind")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "toSearch")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "startLocation")]
[DbFunction("SqlServer", "CHARINDEX")]
public static Int64? CharIndex(String toFind, String toSearch, Int64? startLocation)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the starting position of one expression found within another expression.</summary>
/// <returns>The starting position of toFind if it is found in toSearch .</returns>
/// <param name="toFind">The string expression to be found.</param>
/// <param name="toSearch">The string expression to be searched.</param>
/// <param name="startLocation">The character position in toSearch where searching begins.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "toFind")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "toSearch")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "startLocation")]
[DbFunction("SqlServer", "CHARINDEX")]
public static Int64? CharIndex(Byte[] toFind, Byte[] toSearch, Int64? startLocation)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns an integer value that indicates the difference between the SOUNDEX values of two character expressions.</summary>
/// <returns>The SOUNDEX difference between the two strings.</returns>
/// <param name="string1">The first string.</param>
/// <param name="string2">The second string.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "string2")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "string1")]
[DbFunction("SqlServer", "DIFFERENCE")]
[SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "string")]
public static Int32? Difference(String string1, String string2)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the Unicode character with the specified integer code, as defined by the Unicode standard.</summary>
/// <returns>The character that corresponds to the input character code.</returns>
/// <param name="arg">A character code.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "NCHAR")]
public static String NChar(Int32? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the starting position of the first occurrence of a pattern in a specified expression, or zeros if the pattern is not found, on all valid text and character data types.</summary>
/// <returns>The starting character position where the string pattern was found.</returns>
/// <param name="stringPattern">A string pattern to search for.</param>
/// <param name="target">The string to search.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "stringPattern")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "target")]
[DbFunction("SqlServer", "PATINDEX")]
[SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "string")]
public static Int32? PatIndex(String stringPattern, String target)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier.</summary>
/// <returns>The original string with brackets added.</returns>
/// <param name="stringArg">The expression that quote characters will be added to.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "stringArg")]
[DbFunction("SqlServer", "QUOTENAME")]
[SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "string")]
public static String QuoteName(String stringArg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier.</summary>
/// <returns>The original string with the specified quote characters added.</returns>
/// <param name="stringArg">The expression that quote characters will be added to.</param>
/// <param name="quoteCharacter">The one-character string to use as the delimiter. It can be a single quotation mark ( ' ), a left or right bracket ( [ ] ), or a double quotation mark ( " ). If quote_character is not specified, brackets are used.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "quoteCharacter")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "stringArg")]
[DbFunction("SqlServer", "QUOTENAME")]
[SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "string")]
public static String QuoteName(String stringArg, String quoteCharacter)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Repeats a string value a specified number of times.</summary>
/// <returns>The target string, repeated the number of times specified by count .</returns>
/// <param name="target">A valid string.</param>
/// <param name="count">The value that specifies how many time to repeat target .</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "count")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "target")]
[DbFunction("SqlServer", "REPLICATE")]
public static String Replicate(String target, Int32? count)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Converts an alphanumeric string to a four-character (SOUNDEX) code to find similar-sounding words or names.</summary>
/// <returns>The SOUNDEX code of the input string.</returns>
/// <param name="arg">A valid string.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "SOUNDEX")]
public static String SoundCode(String arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns a string of repeated spaces.</summary>
/// <returns>A string that consists of the specified number of spaces.</returns>
/// <param name="arg1">The number of spaces. If negative, a null string is returned.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg1")]
[DbFunction("SqlServer", "SPACE")]
public static String Space(Int32? arg1)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns character data converted from numeric data.</summary>
/// <returns>The numeric input expression converted to a string.</returns>
/// <param name="number">A numeric expression.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "number")]
[DbFunction("SqlServer", "STR")]
public static String StringConvert(Double? number)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns character data converted from numeric data.</summary>
/// <returns>The input expression converted to a string.</returns>
/// <param name="number">A numeric expression.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "number")]
[DbFunction("SqlServer", "STR")]
public static String StringConvert(Decimal? number)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns character data converted from numeric data.</summary>
/// <returns>The numeric input expression converted to a string.</returns>
/// <param name="number">A numeric expression.</param>
/// <param name="length">The total length of the string. This includes decimal point, sign, digits, and spaces. The default is 10.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "length")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "number")]
[DbFunction("SqlServer", "STR")]
public static String StringConvert(Double? number, Int32? length)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns character data converted from numeric data.</summary>
/// <returns>The input expression converted to a string.</returns>
/// <param name="number">A numeric expression.</param>
/// <param name="length">The total length of the string. This includes decimal point, sign, digits, and spaces. The default is 10.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "number")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "length")]
[DbFunction("SqlServer", "STR")]
public static String StringConvert(Decimal? number, Int32? length)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns character data converted from numeric data.</summary>
/// <returns>The numeric input expression converted to a string.</returns>
/// <param name="number">A numeric expression.</param>
/// <param name="length">The total length of the string. This includes decimal point, sign, digits, and spaces. The default is 10.</param>
/// <param name="decimalArg">The number of places to the right of the decimal point. decimal must be less than or equal to 16. If decimal is more than 16 then the result is truncated to sixteen places to the right of the decimal point.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "length")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "decimalArg")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "number")]
[DbFunction("SqlServer", "STR")]
public static String StringConvert(Double? number, Int32? length, Int32? decimalArg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns character data converted from numeric data.</summary>
/// <returns>The input expression converted to a string.</returns>
/// <param name="number">A numeric expression.</param>
/// <param name="length">The total length of the string. This includes decimal point, sign, digits, and spaces. The default is 10.</param>
/// <param name="decimalArg">The number of places to the right of the decimal point. decimal must be less than or equal to 16. If decimal is more than 16 then the result is truncated to sixteen places to the right of the decimal point.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "decimalArg")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "length")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "number")]
[DbFunction("SqlServer", "STR")]
public static String StringConvert(Decimal? number, Int32? length, Int32? decimalArg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Inserts a string into another string. It deletes a specified length of characters in the target string at the start position and then inserts the second string into the target string at the start position.</summary>
/// <returns>A string consisting of the two strings.</returns>
/// <param name="stringInput">The target string.</param>
/// <param name="start">The character position in stringinput where the replacement string is to be inserted.</param>
/// <param name="length">The number of characters to delete from stringInput . If length is longer than stringInput , deletion occurs up to the last character in stringReplacement .</param>
/// <param name="stringReplacement">The substring to be inserted into stringInput .</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "start")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "length")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "stringInput")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "stringReplacement")]
[DbFunction("SqlServer", "STUFF")]
[SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "string")]
public static String Stuff(String stringInput, Int32? start, Int32? length, String stringReplacement)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the integer value, as defined by the Unicode standard, for the first character of the input expression.</summary>
/// <returns>The character code for the first character in the input string.</returns>
/// <param name="arg">A valid string.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "UNICODE")]
public static Int32? Unicode(String arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>A mathematical function that returns the angle, in radians, whose cosine is the specified numerical value. This angle is called the arccosine.</summary>
/// <returns>The angle, in radians, defined by the input cosine value.</returns>
/// <param name="arg1">The cosine of an angle.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg1")]
[DbFunction("SqlServer", "ACOS")]
public static Double? Acos(Double? arg1)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>A mathematical function that returns the angle, in radians, whose cosine is the specified numerical value. This angle is called the arccosine.</summary>
/// <returns>An angle, measured in radians.</returns>
/// <param name="arg1">The cosine of an angle.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg1")]
[DbFunction("SqlServer", "ACOS")]
public static Double? Acos(Decimal? arg1)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>A mathematical function that returns the angle, in radians, whose sine is the specified numerical value. This angle is called the arcsine.</summary>
/// <returns>An angle, measured in radians.</returns>
/// <param name="arg">The sine of an angle.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "ASIN")]
public static Double? Asin(Double? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>A mathematical function that returns the angle, in radians, whose sine is the specified numerical value. This angle is called the arcsine.</summary>
/// <returns>An angle, measured in radians.</returns>
/// <param name="arg">The sine of an angle.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "ASIN")]
public static Double? Asin(Decimal? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>A mathematical function that returns the angle, in radians, whose tangent is the specified numerical value. This angle is called the arctangent.</summary>
/// <returns>An angle, measured in radians.</returns>
/// <param name="arg">The tangent of an angle.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "ATAN")]
public static Double? Atan(Double? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>A mathematical function that returns the angle, in radians, whose tangent is the specified numerical value. This angle is called the arctangent.</summary>
/// <returns>An angle, measured in radians.</returns>
/// <param name="arg">The tangent of an angle.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "ATAN")]
public static Double? Atan(Decimal? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the positive angle, in radians, between the positive x-axis and the ray from the origin through the point (x, y), where x and y are the two specified numerical values. The first parameter passed to the function is the y-value and the second parameter is the x-value.</summary>
/// <returns>An angle, measured in radians.</returns>
/// <param name="arg1">The y-coordinate of a point.</param>
/// <param name="arg2">The x-coordinate of a point.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg1")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg2")]
[DbFunction("SqlServer", "ATN2")]
public static Double? Atan2(Double? arg1, Double? arg2)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the positive angle, in radians, between the positive x-axis and the ray from the origin through the point (x, y), where x and y are the two specified numerical values. The first parameter passed to the function is the y-value and the second parameter is the x-value.</summary>
/// <returns>An angle, measured in radians.</returns>
/// <param name="arg1">The y-coordinate of a point.</param>
/// <param name="arg2">The x-coordinate of a point.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg2")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg1")]
[DbFunction("SqlServer", "ATN2")]
public static Double? Atan2(Decimal? arg1, Decimal? arg2)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the trigonometric cosine of the specified angle, in radians, in the specified expression.</summary>
/// <returns>The trigonometric cosine of the specified angle.</returns>
/// <param name="arg">An angle, measured in radians.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "COS")]
public static Double? Cos(Double? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the trigonometric cosine of the specified angle, in radians, in the specified expression.</summary>
/// <returns>The trigonometric cosine of the specified angle.</returns>
/// <param name="arg">An angle, measured in radians.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "COS")]
public static Double? Cos(Decimal? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>A mathematical function that returns the trigonometric cotangent of the specified angle, in radians.</summary>
/// <returns>The trigonometric cotangent of the specified angle.</returns>
/// <param name="arg">An angle, measured in radians.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "COT")]
public static Double? Cot(Double? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>A mathematical function that returns the trigonometric cotangent of the specified angle, in radians.</summary>
/// <returns>The trigonometric cotangent of the specified angle.</returns>
/// <param name="arg">An angle, measured in radians.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "COT")]
public static Double? Cot(Decimal? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the corresponding angle in degrees for an angle specified in radians.</summary>
/// <returns>The specified angle converted to degrees.</returns>
/// <param name="arg1">An angle, measured in radians.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg1")]
[DbFunction("SqlServer", "DEGREES")]
public static Int32? Degrees(Int32? arg1)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the corresponding angle in degrees for an angle specified in radians.</summary>
/// <returns>The specified angle converted to degrees.</returns>
/// <param name="arg1">An angle, measured in radians.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg1")]
[DbFunction("SqlServer", "DEGREES")]
public static Int64? Degrees(Int64? arg1)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the corresponding angle in degrees for an angle specified in radians.</summary>
/// <returns>The specified angle converted to degrees.</returns>
/// <param name="arg1">An angle, measured in radians.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg1")]
[DbFunction("SqlServer", "DEGREES")]
public static Decimal? Degrees(Decimal? arg1)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the corresponding angle in degrees for an angle specified in radians.</summary>
/// <returns>The specified angle converted to degrees.</returns>
/// <param name="arg1">An angle, measured in radians.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg1")]
[DbFunction("SqlServer", "DEGREES")]
public static Double? Degrees(Double? arg1)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the exponential value of the specified float expression.</summary>
/// <returns>The constant e raised to the power of the input value.</returns>
/// <param name="arg">The input value.</param>
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Exp")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "EXP")]
public static Double? Exp(Double? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the exponential value of the specified float expression.</summary>
/// <returns>The constant e raised to the power of the input value.</returns>
/// <param name="arg">The input value.</param>
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Exp")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "EXP")]
public static Double? Exp(Decimal? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the natural logarithm of the specified input value.</summary>
/// <returns>The natural logarithm of the input value.</returns>
/// <param name="arg">A numeric expression.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "LOG")]
public static Double? Log(Double? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the natural logarithm of the specified input value.</summary>
/// <returns>The natural logarithm of the input value.</returns>
/// <param name="arg">A numeric expression.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "LOG")]
public static Double? Log(Decimal? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the base-10 logarithm of the specified input value.</summary>
/// <returns>The base-10 logarithm of the input value.</returns>
/// <param name="arg">A numeric expression.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "LOG10")]
public static Double? Log10(Double? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the base-10 logarithm of the specified input value.</summary>
/// <returns>The base-10 logarithm of the input value.</returns>
/// <param name="arg">A numeric expression.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "LOG10")]
public static Double? Log10(Decimal? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the constant value of pi.</summary>
/// <returns>The numeric value of pi.</returns>
[DbFunction("SqlServer", "PI")]
public static Double? Pi()
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the radian measure corresponding to the specified angle in degrees.</summary>
/// <returns>The radian measure of the specified angle.</returns>
/// <param name="arg">The angle, measured in degrees</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "RADIANS")]
public static Int32? Radians(Int32? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the radian measure corresponding to the specified angle in degrees.</summary>
/// <returns>The radian measure of the specified angle.</returns>
/// <param name="arg">The angle, measured in degrees</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "RADIANS")]
public static Int64? Radians(Int64? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the radian measure corresponding to the specified angle in degrees.</summary>
/// <returns>The radian measure of the specified angle.</returns>
/// <param name="arg">The angle, measured in degrees.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "RADIANS")]
public static Decimal? Radians(Decimal? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the radian measure corresponding to the specified angle in degrees.</summary>
/// <returns>The radian measure of the specified angle.</returns>
/// <param name="arg">The angle, measured in degrees.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "RADIANS")]
public static Double? Radians(Double? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns a pseudo-random float value from 0 through 1, exclusive.</summary>
/// <returns>The pseudo-random value.</returns>
[DbFunction("SqlServer", "RAND")]
public static Double? Rand()
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns a pseudo-random float value from 0 through 1, exclusive.</summary>
/// <returns>The pseudo-random value.</returns>
/// <param name="seed">The seed value. If seed is not specified, the SQL Server Database Engine assigns a seed value at random. For a specified seed value, the result returned is always the same.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "seed")]
[DbFunction("SqlServer", "RAND")]
public static Double? Rand(Int32? seed)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.</summary>
/// <returns>The sign of the input expression.</returns>
/// <param name="arg">A numeric expression.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "SIGN")]
public static Int32? Sign(Int32? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.</summary>
/// <returns>The sign of the input expression.</returns>
/// <param name="arg">A numeric expression.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "SIGN")]
public static Int64? Sign(Int64? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.</summary>
/// <returns>The sign of the input expression.</returns>
/// <param name="arg">A numeric expression.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "SIGN")]
public static Decimal? Sign(Decimal? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.</summary>
/// <returns>The sign of the input expression.</returns>
/// <param name="arg">A numeric expression.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "SIGN")]
public static Double? Sign(Double? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the trigonometric sine of the specified angle.</summary>
/// <returns>The trigonometric sine of the input expression.</returns>
/// <param name="arg">An angle, measured in radians.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "SIN")]
public static Double? Sin(Decimal? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the trigonometric sine of the specified angle.</summary>
/// <returns>The trigonometric sine of the input expression.</returns>
/// <param name="arg">An angle, measured in radians.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "SIN")]
public static Double? Sin(Double? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the square root of the specified number.</summary>
/// <returns>The square root of the input value.</returns>
/// <param name="arg">A numeric expression.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "SQRT")]
public static Double? SquareRoot(Double? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the square root of the specified number.</summary>
/// <returns>The square root of the input value.</returns>
/// <param name="arg">A numeric expression.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "SQRT")]
public static Double? SquareRoot(Decimal? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the square of the specified number.</summary>
/// <returns>The square of the input value.</returns>
/// <param name="arg1">A numeric expression.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg1")]
[DbFunction("SqlServer", "SQUARE")]
public static Double? Square(Double? arg1)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the square of the specified number.</summary>
/// <returns>The square of the input value.</returns>
/// <param name="arg1">A numeric expression.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg1")]
[DbFunction("SqlServer", "SQUARE")]
public static Double? Square(Decimal? arg1)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the trigonometric tangent of the input expression.</summary>
/// <returns>The tangent of the input angle.</returns>
/// <param name="arg">An angle, measured in radians.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "TAN")]
public static Double? Tan(Double? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the trigonometric tangent of the input expression.</summary>
/// <returns>The tangent of the input angle.</returns>
/// <param name="arg">An angle, measured in radians.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunction("SqlServer", "TAN")]
public static Double? Tan(Decimal? arg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns a new datetime value based on adding an interval to the specified date.</summary>
/// <returns>The new date.</returns>
/// <param name="datePartArg">The part of the date to increment. </param>
/// <param name="number">The value used to increment a date by a specified amount.</param>
/// <param name="date">The date to increment.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "number")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "date")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "datePartArg")]
[DbFunction("SqlServer", "DATEADD")]
public static DateTime? DateAdd(String datePartArg, Double? number, DateTime? date)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns a new time span value based on adding an interval to the specified time span.</summary>
/// <returns>The new time span.</returns>
/// <param name="datePartArg">The part of the date to increment.</param>
/// <param name="number">The value used to increment a date by a specified amount.</param>
/// <param name="time">The time span to increment.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "time")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "number")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "datePartArg")]
[DbFunction("SqlServer", "DATEADD")]
public static TimeSpan? DateAdd(String datePartArg, Double? number, TimeSpan? time)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns a new date value based on adding an interval to the specified date.</summary>
/// <returns>The new point in time, expressed as a date and time of day, relative to Coordinated Universal Time (UTC).</returns>
/// <param name="datePartArg">The part of the date to increment.</param>
/// <param name="number">The value used to increment a date by a specified amount.</param>
/// <param name="dateTimeOffsetArg">The date to increment.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "number")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "dateTimeOffsetArg")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "datePartArg")]
[DbFunction("SqlServer", "DATEADD")]
public static DateTimeOffset? DateAdd(String datePartArg, Double? number, DateTimeOffset? dateTimeOffsetArg)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns a new datetime value based on adding an interval to the specified date.</summary>
/// <returns>
/// A <see cref="T:System.Nullable`1" /> of <see cref="T:System.DateTime" /> value that is the new date.
/// </returns>
/// <param name="datePartArg">The part of the date to increment.</param>
/// <param name="number">The value used to increment a date by a specified amount.</param>
/// <param name="date">The date to increment.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "datePartArg")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "date")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "number")]
[DbFunction("SqlServer", "DATEADD")]
public static DateTime? DateAdd(String datePartArg, Double? number, String date)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
/// <returns>The number of time intervals between the two dates.</returns>
/// <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
/// <param name="startDate">The first date.</param>
/// <param name="endDate">The second date.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "startDate")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "endDate")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "datePartArg")]
[DbFunction("SqlServer", "DATEDIFF")]
public static Int32? DateDiff(String datePartArg, DateTime? startDate, DateTime? endDate)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
/// <returns>The number of time intervals between the two dates.</returns>
/// <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
/// <param name="startDate">The first date.</param>
/// <param name="endDate">The second date.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "startDate")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "datePartArg")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "endDate")]
[DbFunction("SqlServer", "DATEDIFF")]
public static Int32? DateDiff(String datePartArg, DateTimeOffset? startDate, DateTimeOffset? endDate)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
/// <returns>The number of time intervals between the two dates.</returns>
/// <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
/// <param name="startDate">The first date.</param>
/// <param name="endDate">The second date.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "datePartArg")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "startDate")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "endDate")]
[DbFunction("SqlServer", "DATEDIFF")]
public static Int32? DateDiff(String datePartArg, TimeSpan? startDate, TimeSpan? endDate)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
/// <returns>The number of time intervals between the two dates.</returns>
/// <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
/// <param name="startDate">The first date.</param>
/// <param name="endDate">The second date.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "datePartArg")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "startDate")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "endDate")]
[DbFunction("SqlServer", "DATEDIFF")]
public static Int32? DateDiff(String datePartArg, String startDate, DateTime? endDate)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
/// <returns>The number of time intervals between the two dates.</returns>
/// <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
/// <param name="startDate">The first date.</param>
/// <param name="endDate">The second date.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "datePartArg")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "startDate")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "endDate")]
[DbFunction("SqlServer", "DATEDIFF")]
public static Int32? DateDiff(String datePartArg, String startDate, DateTimeOffset? endDate)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
/// <returns>The value specifying the number of time intervals between the two dates.</returns>
/// <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
/// <param name="startDate">The first date.</param>
/// <param name="endDate">The second date.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "endDate")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "startDate")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "datePartArg")]
[DbFunction("SqlServer", "DATEDIFF")]
public static Int32? DateDiff(String datePartArg, String startDate, TimeSpan? endDate)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
/// <returns>The number of time intervals between the two dates.</returns>
/// <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
/// <param name="startDate">The first date.</param>
/// <param name="endDate">The second date.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "endDate")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "datePartArg")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "startDate")]
[DbFunction("SqlServer", "DATEDIFF")]
public static Int32? DateDiff(String datePartArg, TimeSpan? startDate, String endDate)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
/// <returns>The number of time intervals between the two dates.</returns>
/// <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
/// <param name="startDate">The first date.</param>
/// <param name="endDate">The second date.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "startDate")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "endDate")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "datePartArg")]
[DbFunction("SqlServer", "DATEDIFF")]
public static Int32? DateDiff(String datePartArg, DateTime? startDate, String endDate)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
/// <returns>The number of time intervals between the two dates.</returns>
/// <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
/// <param name="startDate">The first date.</param>
/// <param name="endDate">The second date.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "startDate")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "endDate")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "datePartArg")]
[DbFunction("SqlServer", "DATEDIFF")]
public static Int32? DateDiff(String datePartArg, DateTimeOffset? startDate, String endDate)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
/// <returns>The number of time intervals between the two dates.</returns>
/// <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
/// <param name="startDate">The first date.</param>
/// <param name="endDate">The second date.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "startDate")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "datePartArg")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "endDate")]
[DbFunction("SqlServer", "DATEDIFF")]
public static Int32? DateDiff(String datePartArg, String startDate, String endDate)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
/// <returns>The number of time intervals between the two dates.</returns>
/// <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
/// <param name="startDate">The first date.</param>
/// <param name="endDate">The second date.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "startDate")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "endDate")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "datePartArg")]
[DbFunction("SqlServer", "DATEDIFF")]
public static Int32? DateDiff(String datePartArg, TimeSpan? startDate, DateTime? endDate)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
/// <returns>The number of time intervals between the two dates.</returns>
/// <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
/// <param name="startDate">The first date.</param>
/// <param name="endDate">The second date.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "datePartArg")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "endDate")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "startDate")]
[DbFunction("SqlServer", "DATEDIFF")]
public static Int32? DateDiff(String datePartArg, TimeSpan? startDate, DateTimeOffset? endDate)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
/// <returns>The number of time intervals between the two dates.</returns>
/// <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
/// <param name="startDate">The first date.</param>
/// <param name="endDate">The second date.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "startDate")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "endDate")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "datePartArg")]
[DbFunction("SqlServer", "DATEDIFF")]
public static Int32? DateDiff(String datePartArg, DateTime? startDate, TimeSpan? endDate)
{
throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
}
/// <summary>Returns the count of the specified datepart boundaries crossed between the specified start date and end date.</summary>
/// <returns>The number of time intervals between the two Dates.</returns>
/// <param name="datePartArg">The part of the date to calculate the differing number of time intervals.</param>
/// <param name="startDate">The first date.</param>
/// <param name="endDate">The second date.</param>
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "endDate")]