1 //------------------------------------------------------------------------------
2 // <copyright file="SqlFunctions.cs company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
7 // This code was generated by a tool.
8 // Generation date and time : 9/12/2011 16:49:44.9078794
10 // Changes to this file will be lost if the code is regenerated.
14 // @backupOwner Microsoft
15 //------------------------------------------------------------------------------
17 using System.Collections.Generic;
18 using System.Data.Objects;
19 using System.Data.Objects.DataClasses;
21 using System.Linq.Expressions;
22 using System.Reflection;
24 namespace System.Data.Objects.SqlClient
27 /// Contains function stubs that expose SqlServer methods in Linq to Entities.
29 public static class SqlFunctions
32 /// Proxy for the function SqlServer.CHECKSUM_AGG
34 [EdmFunction("SqlServer", "CHECKSUM_AGG")]
35 public static System.Int32? ChecksumAggregate(IEnumerable<System.Int32> arg)
37 ObjectQuery<System.Int32> objectQuerySource = arg as ObjectQuery<System.Int32>;
38 if (objectQuerySource != null)
40 return ((IQueryable)objectQuerySource).Provider.Execute<System.Int32?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(arg)));
42 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
46 /// Proxy for the function SqlServer.CHECKSUM_AGG
48 [EdmFunction("SqlServer", "CHECKSUM_AGG")]
49 public static System.Int32? ChecksumAggregate(IEnumerable<System.Int32?> arg)
51 ObjectQuery<System.Int32?> objectQuerySource = arg as ObjectQuery<System.Int32?>;
52 if (objectQuerySource != null)
54 return ((IQueryable)objectQuerySource).Provider.Execute<System.Int32?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(arg)));
56 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
60 /// Proxy for the function SqlServer.ASCII
62 [EdmFunction("SqlServer", "ASCII")]
63 public static System.Int32? Ascii(System.String arg)
65 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
69 /// Proxy for the function SqlServer.CHAR
71 [EdmFunction("SqlServer", "CHAR")]
72 public static System.String Char(System.Int32? arg)
74 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
78 /// Proxy for the function SqlServer.CHARINDEX
80 [EdmFunction("SqlServer", "CHARINDEX")]
81 public static System.Int32? CharIndex(System.String toSearch, System.String target)
83 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
87 /// Proxy for the function SqlServer.CHARINDEX
89 [EdmFunction("SqlServer", "CHARINDEX")]
90 public static System.Int32? CharIndex(System.Byte[] toSearch, System.Byte[] target)
92 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
96 /// Proxy for the function SqlServer.CHARINDEX
98 [EdmFunction("SqlServer", "CHARINDEX")]
99 public static System.Int32? CharIndex(System.String toSearch, System.String target, System.Int32? startLocation)
101 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
105 /// Proxy for the function SqlServer.CHARINDEX
107 [EdmFunction("SqlServer", "CHARINDEX")]
108 public static System.Int32? CharIndex(System.Byte[] toSearch, System.Byte[] target, System.Int32? startLocation)
110 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
114 /// Proxy for the function SqlServer.CHARINDEX
116 [EdmFunction("SqlServer", "CHARINDEX")]
117 public static System.Int64? CharIndex(System.String toSearch, System.String target, System.Int64? startLocation)
119 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
123 /// Proxy for the function SqlServer.CHARINDEX
125 [EdmFunction("SqlServer", "CHARINDEX")]
126 public static System.Int64? CharIndex(System.Byte[] toSearch, System.Byte[] target, System.Int64? startLocation)
128 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
132 /// Proxy for the function SqlServer.DIFFERENCE
134 [EdmFunction("SqlServer", "DIFFERENCE")]
135 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "string")]
136 public static System.Int32? Difference(System.String string1, System.String string2)
138 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
142 /// Proxy for the function SqlServer.NCHAR
144 [EdmFunction("SqlServer", "NCHAR")]
145 public static System.String NChar(System.Int32? arg)
147 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
151 /// Proxy for the function SqlServer.PATINDEX
153 [EdmFunction("SqlServer", "PATINDEX")]
154 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "string")]
155 public static System.Int32? PatIndex(System.String stringPattern, System.String target)
157 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
161 /// Proxy for the function SqlServer.QUOTENAME
163 [EdmFunction("SqlServer", "QUOTENAME")]
164 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "string")]
165 public static System.String QuoteName(System.String stringArg)
167 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
171 /// Proxy for the function SqlServer.QUOTENAME
173 [EdmFunction("SqlServer", "QUOTENAME")]
174 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "string")]
175 public static System.String QuoteName(System.String stringArg, System.String quoteCharacter)
177 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
181 /// Proxy for the function SqlServer.REPLICATE
183 [EdmFunction("SqlServer", "REPLICATE")]
184 public static System.String Replicate(System.String target, System.Int32? count)
186 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
190 /// Proxy for the function SqlServer.SOUNDEX
192 [EdmFunction("SqlServer", "SOUNDEX")]
193 public static System.String SoundCode(System.String arg)
195 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
199 /// Proxy for the function SqlServer.SPACE
201 [EdmFunction("SqlServer", "SPACE")]
202 public static System.String Space(System.Int32? arg1)
204 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
208 /// Proxy for the function SqlServer.STR
210 [EdmFunction("SqlServer", "STR")]
211 public static System.String StringConvert(System.Double? number)
213 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
217 /// Proxy for the function SqlServer.STR
219 [EdmFunction("SqlServer", "STR")]
220 public static System.String StringConvert(System.Decimal? number)
222 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
226 /// Proxy for the function SqlServer.STR
228 [EdmFunction("SqlServer", "STR")]
229 public static System.String StringConvert(System.Double? number, System.Int32? length)
231 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
235 /// Proxy for the function SqlServer.STR
237 [EdmFunction("SqlServer", "STR")]
238 public static System.String StringConvert(System.Decimal? number, System.Int32? length)
240 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
244 /// Proxy for the function SqlServer.STR
246 [EdmFunction("SqlServer", "STR")]
247 public static System.String StringConvert(System.Double? number, System.Int32? length, System.Int32? decimalArg)
249 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
253 /// Proxy for the function SqlServer.STR
255 [EdmFunction("SqlServer", "STR")]
256 public static System.String StringConvert(System.Decimal? number, System.Int32? length, System.Int32? decimalArg)
258 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
262 /// Proxy for the function SqlServer.STUFF
264 [EdmFunction("SqlServer", "STUFF")]
265 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "string")]
266 public static System.String Stuff(System.String stringInput, System.Int32? start, System.Int32? length, System.String stringReplacement)
268 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
272 /// Proxy for the function SqlServer.UNICODE
274 [EdmFunction("SqlServer", "UNICODE")]
275 public static System.Int32? Unicode(System.String arg)
277 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
281 /// Proxy for the function SqlServer.ACOS
283 [EdmFunction("SqlServer", "ACOS")]
284 public static System.Double? Acos(System.Double? arg1)
286 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
290 /// Proxy for the function SqlServer.ACOS
292 [EdmFunction("SqlServer", "ACOS")]
293 public static System.Double? Acos(System.Decimal? arg1)
295 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
299 /// Proxy for the function SqlServer.ASIN
301 [EdmFunction("SqlServer", "ASIN")]
302 public static System.Double? Asin(System.Double? arg)
304 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
308 /// Proxy for the function SqlServer.ASIN
310 [EdmFunction("SqlServer", "ASIN")]
311 public static System.Double? Asin(System.Decimal? arg)
313 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
317 /// Proxy for the function SqlServer.ATAN
319 [EdmFunction("SqlServer", "ATAN")]
320 public static System.Double? Atan(System.Double? arg)
322 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
326 /// Proxy for the function SqlServer.ATAN
328 [EdmFunction("SqlServer", "ATAN")]
329 public static System.Double? Atan(System.Decimal? arg)
331 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
335 /// Proxy for the function SqlServer.ATN2
337 [EdmFunction("SqlServer", "ATN2")]
338 public static System.Double? Atan2(System.Double? arg1, System.Double? arg2)
340 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
344 /// Proxy for the function SqlServer.ATN2
346 [EdmFunction("SqlServer", "ATN2")]
347 public static System.Double? Atan2(System.Decimal? arg1, System.Decimal? arg2)
349 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
353 /// Proxy for the function SqlServer.COS
355 [EdmFunction("SqlServer", "COS")]
356 public static System.Double? Cos(System.Double? arg)
358 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
362 /// Proxy for the function SqlServer.COS
364 [EdmFunction("SqlServer", "COS")]
365 public static System.Double? Cos(System.Decimal? arg)
367 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
371 /// Proxy for the function SqlServer.COT
373 [EdmFunction("SqlServer", "COT")]
374 public static System.Double? Cot(System.Double? arg)
376 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
380 /// Proxy for the function SqlServer.COT
382 [EdmFunction("SqlServer", "COT")]
383 public static System.Double? Cot(System.Decimal? arg)
385 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
389 /// Proxy for the function SqlServer.DEGREES
391 [EdmFunction("SqlServer", "DEGREES")]
392 public static System.Int32? Degrees(System.Int32? arg1)
394 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
398 /// Proxy for the function SqlServer.DEGREES
400 [EdmFunction("SqlServer", "DEGREES")]
401 public static System.Int64? Degrees(System.Int64? arg1)
403 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
407 /// Proxy for the function SqlServer.DEGREES
409 [EdmFunction("SqlServer", "DEGREES")]
410 public static System.Decimal? Degrees(System.Decimal? arg1)
412 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
416 /// Proxy for the function SqlServer.DEGREES
418 [EdmFunction("SqlServer", "DEGREES")]
419 public static System.Double? Degrees(System.Double? arg1)
421 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
425 /// Proxy for the function SqlServer.EXP
427 [EdmFunction("SqlServer", "EXP")]
428 public static System.Double? Exp(System.Double? arg)
430 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
434 /// Proxy for the function SqlServer.EXP
436 [EdmFunction("SqlServer", "EXP")]
437 public static System.Double? Exp(System.Decimal? arg)
439 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
443 /// Proxy for the function SqlServer.LOG
445 [EdmFunction("SqlServer", "LOG")]
446 public static System.Double? Log(System.Double? arg)
448 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
452 /// Proxy for the function SqlServer.LOG
454 [EdmFunction("SqlServer", "LOG")]
455 public static System.Double? Log(System.Decimal? arg)
457 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
461 /// Proxy for the function SqlServer.LOG10
463 [EdmFunction("SqlServer", "LOG10")]
464 public static System.Double? Log10(System.Double? arg)
466 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
470 /// Proxy for the function SqlServer.LOG10
472 [EdmFunction("SqlServer", "LOG10")]
473 public static System.Double? Log10(System.Decimal? arg)
475 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
479 /// Proxy for the function SqlServer.PI
481 [EdmFunction("SqlServer", "PI")]
482 public static System.Double? Pi()
484 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
488 /// Proxy for the function SqlServer.RADIANS
490 [EdmFunction("SqlServer", "RADIANS")]
491 public static System.Int32? Radians(System.Int32? arg)
493 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
497 /// Proxy for the function SqlServer.RADIANS
499 [EdmFunction("SqlServer", "RADIANS")]
500 public static System.Int64? Radians(System.Int64? arg)
502 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
506 /// Proxy for the function SqlServer.RADIANS
508 [EdmFunction("SqlServer", "RADIANS")]
509 public static System.Decimal? Radians(System.Decimal? arg)
511 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
515 /// Proxy for the function SqlServer.RADIANS
517 [EdmFunction("SqlServer", "RADIANS")]
518 public static System.Double? Radians(System.Double? arg)
520 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
524 /// Proxy for the function SqlServer.RAND
526 [EdmFunction("SqlServer", "RAND")]
527 public static System.Double? Rand()
529 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
533 /// Proxy for the function SqlServer.RAND
535 [EdmFunction("SqlServer", "RAND")]
536 public static System.Double? Rand(System.Int32? seed)
538 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
542 /// Proxy for the function SqlServer.SIGN
544 [EdmFunction("SqlServer", "SIGN")]
545 public static System.Int32? Sign(System.Int32? arg)
547 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
551 /// Proxy for the function SqlServer.SIGN
553 [EdmFunction("SqlServer", "SIGN")]
554 public static System.Int64? Sign(System.Int64? arg)
556 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
560 /// Proxy for the function SqlServer.SIGN
562 [EdmFunction("SqlServer", "SIGN")]
563 public static System.Decimal? Sign(System.Decimal? arg)
565 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
569 /// Proxy for the function SqlServer.SIGN
571 [EdmFunction("SqlServer", "SIGN")]
572 public static System.Double? Sign(System.Double? arg)
574 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
578 /// Proxy for the function SqlServer.SIN
580 [EdmFunction("SqlServer", "SIN")]
581 public static System.Double? Sin(System.Decimal? arg)
583 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
587 /// Proxy for the function SqlServer.SIN
589 [EdmFunction("SqlServer", "SIN")]
590 public static System.Double? Sin(System.Double? arg)
592 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
596 /// Proxy for the function SqlServer.SQRT
598 [EdmFunction("SqlServer", "SQRT")]
599 public static System.Double? SquareRoot(System.Double? arg)
601 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
605 /// Proxy for the function SqlServer.SQRT
607 [EdmFunction("SqlServer", "SQRT")]
608 public static System.Double? SquareRoot(System.Decimal? arg)
610 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
614 /// Proxy for the function SqlServer.SQUARE
616 [EdmFunction("SqlServer", "SQUARE")]
617 public static System.Double? Square(System.Double? arg1)
619 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
623 /// Proxy for the function SqlServer.SQUARE
625 [EdmFunction("SqlServer", "SQUARE")]
626 public static System.Double? Square(System.Decimal? arg1)
628 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
632 /// Proxy for the function SqlServer.TAN
634 [EdmFunction("SqlServer", "TAN")]
635 public static System.Double? Tan(System.Double? arg)
637 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
641 /// Proxy for the function SqlServer.TAN
643 [EdmFunction("SqlServer", "TAN")]
644 public static System.Double? Tan(System.Decimal? arg)
646 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
650 /// Proxy for the function SqlServer.DATEADD
652 [EdmFunction("SqlServer", "DATEADD")]
653 public static System.DateTime? DateAdd(System.String datePartArg, System.Double? number, System.DateTime? date)
655 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
659 /// Proxy for the function SqlServer.DATEADD
661 [EdmFunction("SqlServer", "DATEADD")]
662 public static System.TimeSpan? DateAdd(System.String datePartArg, System.Double? number, System.TimeSpan? time)
664 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
668 /// Proxy for the function SqlServer.DATEADD
670 [EdmFunction("SqlServer", "DATEADD")]
671 public static System.DateTimeOffset? DateAdd(System.String datePartArg, System.Double? number, System.DateTimeOffset? dateTimeOffsetArg)
673 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
677 /// Proxy for the function SqlServer.DATEADD
679 [EdmFunction("SqlServer", "DATEADD")]
680 public static System.DateTime? DateAdd(System.String datePartArg, System.Double? number, System.String date)
682 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
686 /// Proxy for the function SqlServer.DATEDIFF
688 [EdmFunction("SqlServer", "DATEDIFF")]
689 public static System.Int32? DateDiff(System.String datePartArg, System.DateTime? startDate, System.DateTime? endDate)
691 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
695 /// Proxy for the function SqlServer.DATEDIFF
697 [EdmFunction("SqlServer", "DATEDIFF")]
698 public static System.Int32? DateDiff(System.String datePartArg, System.DateTimeOffset? startDate, System.DateTimeOffset? endDate)
700 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
704 /// Proxy for the function SqlServer.DATEDIFF
706 [EdmFunction("SqlServer", "DATEDIFF")]
707 public static System.Int32? DateDiff(System.String datePartArg, System.TimeSpan? startDate, System.TimeSpan? endDate)
709 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
713 /// Proxy for the function SqlServer.DATEDIFF
715 [EdmFunction("SqlServer", "DATEDIFF")]
716 public static System.Int32? DateDiff(System.String datePartArg, System.String startDate, System.DateTime? endDate)
718 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
722 /// Proxy for the function SqlServer.DATEDIFF
724 [EdmFunction("SqlServer", "DATEDIFF")]
725 public static System.Int32? DateDiff(System.String datePartArg, System.String startDate, System.DateTimeOffset? endDate)
727 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
731 /// Proxy for the function SqlServer.DATEDIFF
733 [EdmFunction("SqlServer", "DATEDIFF")]
734 public static System.Int32? DateDiff(System.String datePartArg, System.String startDate, System.TimeSpan? endDate)
736 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
740 /// Proxy for the function SqlServer.DATEDIFF
742 [EdmFunction("SqlServer", "DATEDIFF")]
743 public static System.Int32? DateDiff(System.String datePartArg, System.TimeSpan? startDate, System.String endDate)
745 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
749 /// Proxy for the function SqlServer.DATEDIFF
751 [EdmFunction("SqlServer", "DATEDIFF")]
752 public static System.Int32? DateDiff(System.String datePartArg, System.DateTime? startDate, System.String endDate)
754 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
758 /// Proxy for the function SqlServer.DATEDIFF
760 [EdmFunction("SqlServer", "DATEDIFF")]
761 public static System.Int32? DateDiff(System.String datePartArg, System.DateTimeOffset? startDate, System.String endDate)
763 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
767 /// Proxy for the function SqlServer.DATEDIFF
769 [EdmFunction("SqlServer", "DATEDIFF")]
770 public static System.Int32? DateDiff(System.String datePartArg, System.String startDate, System.String endDate)
772 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
776 /// Proxy for the function SqlServer.DATEDIFF
778 [EdmFunction("SqlServer", "DATEDIFF")]
779 public static System.Int32? DateDiff(System.String datePartArg, System.TimeSpan? startDate, System.DateTime? endDate)
781 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
785 /// Proxy for the function SqlServer.DATEDIFF
787 [EdmFunction("SqlServer", "DATEDIFF")]
788 public static System.Int32? DateDiff(System.String datePartArg, System.TimeSpan? startDate, System.DateTimeOffset? endDate)
790 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
794 /// Proxy for the function SqlServer.DATEDIFF
796 [EdmFunction("SqlServer", "DATEDIFF")]
797 public static System.Int32? DateDiff(System.String datePartArg, System.DateTime? startDate, System.TimeSpan? endDate)
799 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
803 /// Proxy for the function SqlServer.DATEDIFF
805 [EdmFunction("SqlServer", "DATEDIFF")]
806 public static System.Int32? DateDiff(System.String datePartArg, System.DateTimeOffset? startDate, System.TimeSpan? endDate)
808 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
812 /// Proxy for the function SqlServer.DATEDIFF
814 [EdmFunction("SqlServer", "DATEDIFF")]
815 public static System.Int32? DateDiff(System.String datePartArg, System.DateTime? startDate, System.DateTimeOffset? endDate)
817 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
821 /// Proxy for the function SqlServer.DATEDIFF
823 [EdmFunction("SqlServer", "DATEDIFF")]
824 public static System.Int32? DateDiff(System.String datePartArg, System.DateTimeOffset? startDate, System.DateTime? endDate)
826 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
830 /// Proxy for the function SqlServer.DATENAME
832 [EdmFunction("SqlServer", "DATENAME")]
833 public static System.String DateName(System.String datePartArg, System.DateTime? date)
835 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
839 /// Proxy for the function SqlServer.DATENAME
841 [EdmFunction("SqlServer", "DATENAME")]
842 public static System.String DateName(System.String datePartArg, System.String date)
844 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
848 /// Proxy for the function SqlServer.DATENAME
850 [EdmFunction("SqlServer", "DATENAME")]
851 public static System.String DateName(System.String datePartArg, System.TimeSpan? date)
853 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
857 /// Proxy for the function SqlServer.DATENAME
859 [EdmFunction("SqlServer", "DATENAME")]
860 public static System.String DateName(System.String datePartArg, System.DateTimeOffset? date)
862 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
866 /// Proxy for the function SqlServer.DATEPART
868 [EdmFunction("SqlServer", "DATEPART")]
869 public static System.Int32? DatePart(System.String datePartArg, System.DateTime? date)
871 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
875 /// Proxy for the function SqlServer.DATEPART
877 [EdmFunction("SqlServer", "DATEPART")]
878 public static System.Int32? DatePart(System.String datePartArg, System.DateTimeOffset? date)
880 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
884 /// Proxy for the function SqlServer.DATEPART
886 [EdmFunction("SqlServer", "DATEPART")]
887 public static System.Int32? DatePart(System.String datePartArg, System.String date)
889 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
893 /// Proxy for the function SqlServer.DATEPART
895 [EdmFunction("SqlServer", "DATEPART")]
896 public static System.Int32? DatePart(System.String datePartArg, System.TimeSpan? date)
898 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
902 /// Proxy for the function SqlServer.GETDATE
904 [EdmFunction("SqlServer", "GETDATE")]
905 public static System.DateTime? GetDate()
907 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
911 /// Proxy for the function SqlServer.GETUTCDATE
913 [EdmFunction("SqlServer", "GETUTCDATE")]
914 public static System.DateTime? GetUtcDate()
916 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
920 /// Proxy for the function SqlServer.DATALENGTH
922 [EdmFunction("SqlServer", "DATALENGTH")]
923 public static System.Int32? DataLength(System.Boolean? arg)
925 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
929 /// Proxy for the function SqlServer.DATALENGTH
931 [EdmFunction("SqlServer", "DATALENGTH")]
932 public static System.Int32? DataLength(System.Double? arg)
934 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
938 /// Proxy for the function SqlServer.DATALENGTH
940 [EdmFunction("SqlServer", "DATALENGTH")]
941 public static System.Int32? DataLength(System.Decimal? arg)
943 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
947 /// Proxy for the function SqlServer.DATALENGTH
949 [EdmFunction("SqlServer", "DATALENGTH")]
950 public static System.Int32? DataLength(System.DateTime? arg)
952 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
956 /// Proxy for the function SqlServer.DATALENGTH
958 [EdmFunction("SqlServer", "DATALENGTH")]
959 public static System.Int32? DataLength(System.TimeSpan? arg)
961 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
965 /// Proxy for the function SqlServer.DATALENGTH
967 [EdmFunction("SqlServer", "DATALENGTH")]
968 public static System.Int32? DataLength(System.DateTimeOffset? arg)
970 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
974 /// Proxy for the function SqlServer.DATALENGTH
976 [EdmFunction("SqlServer", "DATALENGTH")]
977 public static System.Int32? DataLength(System.String arg)
979 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
983 /// Proxy for the function SqlServer.DATALENGTH
985 [EdmFunction("SqlServer", "DATALENGTH")]
986 public static System.Int32? DataLength(System.Byte[] arg)
988 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
992 /// Proxy for the function SqlServer.DATALENGTH
994 [EdmFunction("SqlServer", "DATALENGTH")]
995 public static System.Int32? DataLength(System.Guid? arg)
997 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1001 /// Proxy for the function SqlServer.CHECKSUM
1003 [EdmFunction("SqlServer", "CHECKSUM")]
1004 public static System.Int32? Checksum(System.Boolean? arg1)
1006 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1010 /// Proxy for the function SqlServer.CHECKSUM
1012 [EdmFunction("SqlServer", "CHECKSUM")]
1013 public static System.Int32? Checksum(System.Double? arg1)
1015 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1019 /// Proxy for the function SqlServer.CHECKSUM
1021 [EdmFunction("SqlServer", "CHECKSUM")]
1022 public static System.Int32? Checksum(System.Decimal? arg1)
1024 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1028 /// Proxy for the function SqlServer.CHECKSUM
1030 [EdmFunction("SqlServer", "CHECKSUM")]
1031 public static System.Int32? Checksum(System.String arg1)
1033 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1037 /// Proxy for the function SqlServer.CHECKSUM
1039 [EdmFunction("SqlServer", "CHECKSUM")]
1040 public static System.Int32? Checksum(System.DateTime? arg1)
1042 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1046 /// Proxy for the function SqlServer.CHECKSUM
1048 [EdmFunction("SqlServer", "CHECKSUM")]
1049 public static System.Int32? Checksum(System.TimeSpan? arg1)
1051 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1055 /// Proxy for the function SqlServer.CHECKSUM
1057 [EdmFunction("SqlServer", "CHECKSUM")]
1058 public static System.Int32? Checksum(System.DateTimeOffset? arg1)
1060 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1064 /// Proxy for the function SqlServer.CHECKSUM
1066 [EdmFunction("SqlServer", "CHECKSUM")]
1067 public static System.Int32? Checksum(System.Byte[] arg1)
1069 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1073 /// Proxy for the function SqlServer.CHECKSUM
1075 [EdmFunction("SqlServer", "CHECKSUM")]
1076 public static System.Int32? Checksum(System.Guid? arg1)
1078 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1082 /// Proxy for the function SqlServer.CHECKSUM
1084 [EdmFunction("SqlServer", "CHECKSUM")]
1085 public static System.Int32? Checksum(System.Boolean? arg1, System.Boolean? arg2)
1087 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1091 /// Proxy for the function SqlServer.CHECKSUM
1093 [EdmFunction("SqlServer", "CHECKSUM")]
1094 public static System.Int32? Checksum(System.Double? arg1, System.Double? arg2)
1096 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1100 /// Proxy for the function SqlServer.CHECKSUM
1102 [EdmFunction("SqlServer", "CHECKSUM")]
1103 public static System.Int32? Checksum(System.Decimal? arg1, System.Decimal? arg2)
1105 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1109 /// Proxy for the function SqlServer.CHECKSUM
1111 [EdmFunction("SqlServer", "CHECKSUM")]
1112 public static System.Int32? Checksum(System.String arg1, System.String arg2)
1114 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1118 /// Proxy for the function SqlServer.CHECKSUM
1120 [EdmFunction("SqlServer", "CHECKSUM")]
1121 public static System.Int32? Checksum(System.DateTime? arg1, System.DateTime? arg2)
1123 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1127 /// Proxy for the function SqlServer.CHECKSUM
1129 [EdmFunction("SqlServer", "CHECKSUM")]
1130 public static System.Int32? Checksum(System.TimeSpan? arg1, System.TimeSpan? arg2)
1132 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1136 /// Proxy for the function SqlServer.CHECKSUM
1138 [EdmFunction("SqlServer", "CHECKSUM")]
1139 public static System.Int32? Checksum(System.DateTimeOffset? arg1, System.DateTimeOffset? arg2)
1141 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1145 /// Proxy for the function SqlServer.CHECKSUM
1147 [EdmFunction("SqlServer", "CHECKSUM")]
1148 public static System.Int32? Checksum(System.Byte[] arg1, System.Byte[] arg2)
1150 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1154 /// Proxy for the function SqlServer.CHECKSUM
1156 [EdmFunction("SqlServer", "CHECKSUM")]
1157 public static System.Int32? Checksum(System.Guid? arg1, System.Guid? arg2)
1159 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1163 /// Proxy for the function SqlServer.CHECKSUM
1165 [EdmFunction("SqlServer", "CHECKSUM")]
1166 public static System.Int32? Checksum(System.Boolean? arg1, System.Boolean? arg2, System.Boolean? arg3)
1168 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1172 /// Proxy for the function SqlServer.CHECKSUM
1174 [EdmFunction("SqlServer", "CHECKSUM")]
1175 public static System.Int32? Checksum(System.Double? arg1, System.Double? arg2, System.Double? arg3)
1177 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1181 /// Proxy for the function SqlServer.CHECKSUM
1183 [EdmFunction("SqlServer", "CHECKSUM")]
1184 public static System.Int32? Checksum(System.Decimal? arg1, System.Decimal? arg2, System.Decimal? arg3)
1186 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1190 /// Proxy for the function SqlServer.CHECKSUM
1192 [EdmFunction("SqlServer", "CHECKSUM")]
1193 public static System.Int32? Checksum(System.String arg1, System.String arg2, System.String arg3)
1195 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1199 /// Proxy for the function SqlServer.CHECKSUM
1201 [EdmFunction("SqlServer", "CHECKSUM")]
1202 public static System.Int32? Checksum(System.DateTime? arg1, System.DateTime? arg2, System.DateTime? arg3)
1204 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1208 /// Proxy for the function SqlServer.CHECKSUM
1210 [EdmFunction("SqlServer", "CHECKSUM")]
1211 public static System.Int32? Checksum(System.DateTimeOffset? arg1, System.DateTimeOffset? arg2, System.DateTimeOffset? arg3)
1213 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1217 /// Proxy for the function SqlServer.CHECKSUM
1219 [EdmFunction("SqlServer", "CHECKSUM")]
1220 public static System.Int32? Checksum(System.TimeSpan? arg1, System.TimeSpan? arg2, System.TimeSpan? arg3)
1222 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1226 /// Proxy for the function SqlServer.CHECKSUM
1228 [EdmFunction("SqlServer", "CHECKSUM")]
1229 public static System.Int32? Checksum(System.Byte[] arg1, System.Byte[] arg2, System.Byte[] arg3)
1231 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1235 /// Proxy for the function SqlServer.CHECKSUM
1237 [EdmFunction("SqlServer", "CHECKSUM")]
1238 public static System.Int32? Checksum(System.Guid? arg1, System.Guid? arg2, System.Guid? arg3)
1240 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1244 /// Proxy for the function SqlServer.CURRENT_TIMESTAMP
1246 [EdmFunction("SqlServer", "CURRENT_TIMESTAMP")]
1247 public static System.DateTime? CurrentTimestamp()
1249 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1253 /// Proxy for the function SqlServer.CURRENT_USER
1255 [EdmFunction("SqlServer", "CURRENT_USER")]
1256 public static System.String CurrentUser()
1258 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1262 /// Proxy for the function SqlServer.HOST_NAME
1264 [EdmFunction("SqlServer", "HOST_NAME")]
1265 public static System.String HostName()
1267 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1271 /// Proxy for the function SqlServer.USER_NAME
1273 [EdmFunction("SqlServer", "USER_NAME")]
1274 public static System.String UserName(System.Int32? arg)
1276 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1280 /// Proxy for the function SqlServer.USER_NAME
1282 [EdmFunction("SqlServer", "USER_NAME")]
1283 public static System.String UserName()
1285 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1289 /// Proxy for the function SqlServer.ISNUMERIC
1291 [EdmFunction("SqlServer", "ISNUMERIC")]
1292 public static System.Int32? IsNumeric(System.String arg)
1294 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
1298 /// Proxy for the function SqlServer.ISDATE
1300 [EdmFunction("SqlServer", "ISDATE")]
1301 public static System.Int32? IsDate(System.String arg)
1303 throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);