System.Data.Common.CommandTrees.ExpressionBuilder.EdmFunctions.InvokeCanonicalFunction(string, params System.Data.Common.CommandTrees.DbExpression[])

Here are the examples of the csharp api class System.Data.Common.CommandTrees.ExpressionBuilder.EdmFunctions.InvokeCanonicalFunction(string, params System.Data.Common.CommandTrees.DbExpression[]) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

72 Examples 7

1. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression Average(this DbExpression collection)
        {
            EntityUtil.CheckArgumentNull(collection, "collection");
            return InvokeCanonicalFunction("Avg", collection);
        }

2. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression Count(this DbExpression collection)
        {
            EntityUtil.CheckArgumentNull(collection, "collection");
            return InvokeCanonicalFunction("Count", collection);
        }

3. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression LongCount(this DbExpression collection)
        {
            EntityUtil.CheckArgumentNull(collection, "collection");
            return InvokeCanonicalFunction("BigCount", collection);
        }

4. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression Max(this DbExpression collection)
        {
            EntityUtil.CheckArgumentNull(collection, "collection");
            return InvokeCanonicalFunction("Max", collection);
        }

5. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression Min(this DbExpression collection)
        {
            EntityUtil.CheckArgumentNull(collection, "collection");
            return InvokeCanonicalFunction("Min", collection);
        }

6. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression Sum(this DbExpression collection)
        {
            EntityUtil.CheckArgumentNull(collection, "collection");
            return InvokeCanonicalFunction("Sum", collection);
        }

7. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "St")]
        public static DbFunctionExpression StDev(this DbExpression collection)
        {
            EntityUtil.CheckArgumentNull(collection, "collection");
            return InvokeCanonicalFunction("StDev", collection);
        }

8. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "St")]
        public static DbFunctionExpression StDevP(this DbExpression collection)
        {
            EntityUtil.CheckArgumentNull(collection, "collection");
            return InvokeCanonicalFunction("StDevP", collection);
        }

9. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression Var(this DbExpression collection)
        {
            EntityUtil.CheckArgumentNull(collection, "collection");
            return InvokeCanonicalFunction("Var", collection);
        }

10. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression VarP(this DbExpression collection)
        {
            EntityUtil.CheckArgumentNull(collection, "collection");
            return InvokeCanonicalFunction("VarP", collection);
        }

11. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression Concat(this DbExpression string1, DbExpression string2)
        {
            EntityUtil.CheckArgumentNull(string1, "string1");
            EntityUtil.CheckArgumentNull(string2, "string2");
            return InvokeCanonicalFunction("Concat", string1, string2);
        }

12. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbExpression Contains(this DbExpression searchedString, DbExpression searchedForString)
        {
            EntityUtil.CheckArgumentNull(searchedString, "searchedString");
            EntityUtil.CheckArgumentNull(searchedForString, "searchedForString");
            return InvokeCanonicalFunction("Contains", searchedString, searchedForString);
        }

13. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression EndsWith(this DbExpression stringArgument, DbExpression suffix)
        {
            EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
            EntityUtil.CheckArgumentNull(suffix, "suffix");
            return InvokeCanonicalFunction("EndsWith", stringArgument, suffix);
        }

14. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression IndexOf(this DbExpression searchString, DbExpression stringToFind)
        {
            EntityUtil.CheckArgumentNull(searchString, "searchString");
            EntityUtil.CheckArgumentNull(stringToFind, "stringToFind");
            return InvokeCanonicalFunction("IndexOf", stringToFind, searchString);
        }

15. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression Left(this DbExpression stringArgument, DbExpression length)
        {
            EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
            EntityUtil.CheckArgumentNull(length, "length");
            return InvokeCanonicalFunction("Left", stringArgument, length);
        }

16. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression Length(this DbExpression stringArgument)
        {
            EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
            return InvokeCanonicalFunction("Length", stringArgument);
        }

17. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression Replace(this DbExpression stringArgument, DbExpression toReplace, DbExpression replacement)
        {
            EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
            EntityUtil.CheckArgumentNull(toReplace, "toReplace");
            EntityUtil.CheckArgumentNull(replacement, "replacement");
            return InvokeCanonicalFunction("Replace", stringArgument, toReplace, replacement);
        }

18. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression Reverse(this DbExpression stringArgument)
        {
            EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
            return InvokeCanonicalFunction("Reverse", stringArgument);
        }

19. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression Right(this DbExpression stringArgument, DbExpression length)
        {
            EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
            EntityUtil.CheckArgumentNull(length, "length");
            return InvokeCanonicalFunction("Right", stringArgument, length);
        }

20. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression StartsWith(this DbExpression stringArgument, DbExpression prefix)
        {
            EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
            EntityUtil.CheckArgumentNull(prefix, "prefix");
            return InvokeCanonicalFunction("StartsWith", stringArgument, prefix);
        }

21. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression Substring(this DbExpression stringArgument, DbExpression start, DbExpression length)
        {
            EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
            EntityUtil.CheckArgumentNull(start, "start");
            EntityUtil.CheckArgumentNull(length, "length");
            return InvokeCanonicalFunction("Substring", stringArgument, start, length);
        }

22. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression ToLower(this DbExpression stringArgument)
        {
            EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
            return InvokeCanonicalFunction("ToLower", stringArgument);
        }

23. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression ToUpper(this DbExpression stringArgument)
        {
            EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
            return InvokeCanonicalFunction("ToUpper", stringArgument);
        }

24. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression Trim(this DbExpression stringArgument)
        {
            EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
            return InvokeCanonicalFunction("Trim", stringArgument);
        }

25. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression TrimEnd(this DbExpression stringArgument)
        {
            EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
            return InvokeCanonicalFunction("RTrim", stringArgument);
        }

26. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression TrimStart(this DbExpression stringArgument)
        {
            EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
            return InvokeCanonicalFunction("LTrim", stringArgument);
        }

27. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression Year(this DbExpression dateValue)
        {
            EntityUtil.CheckArgumentNull(dateValue, "dateValue");
            return InvokeCanonicalFunction("Year", dateValue);
        }

28. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression Month(this DbExpression dateValue)
        {
            EntityUtil.CheckArgumentNull(dateValue, "dateValue");
            return InvokeCanonicalFunction("Month", dateValue);
        }

29. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression Day(this DbExpression dateValue)
        {
            EntityUtil.CheckArgumentNull(dateValue, "dateValue");
            return InvokeCanonicalFunction("Day", dateValue);
        }

30. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression DayOfYear(this DbExpression dateValue)
        {
            EntityUtil.CheckArgumentNull(dateValue, "dateValue");
            return InvokeCanonicalFunction("DayOfYear", dateValue);
        }

31. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression Hour(this DbExpression timeValue)
        {
            EntityUtil.CheckArgumentNull(timeValue, "timeValue");
            return InvokeCanonicalFunction("Hour", timeValue);
        }

32. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression Minute(this DbExpression timeValue)
        {
            EntityUtil.CheckArgumentNull(timeValue, "timeValue");
            return InvokeCanonicalFunction("Minute", timeValue);
        }

33. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression Second(this DbExpression timeValue)
        {
            EntityUtil.CheckArgumentNull(timeValue, "timeValue");
            return InvokeCanonicalFunction("Second", timeValue);
        }

34. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression Millisecond(this DbExpression timeValue)
        {
            EntityUtil.CheckArgumentNull(timeValue, "timeValue");
            return InvokeCanonicalFunction("Millisecond", timeValue);
        }

35. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression GetTotalOffsetMinutes(this DbExpression dateTimeOffsetArgument)
        {
            EntityUtil.CheckArgumentNull(dateTimeOffsetArgument, "dateTimeOffsetArgument");
            return InvokeCanonicalFunction("GetTotalOffsetMinutes", dateTimeOffsetArgument);
        }

36. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression CurrentDateTime()
        {
            return InvokeCanonicalFunction("CurrentDateTime");
        }

37. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression CurrentDateTimeOffset()
        {
            return InvokeCanonicalFunction("CurrentDateTimeOffset");
        }

38. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression CurrentUtcDateTime()
        {
            return InvokeCanonicalFunction("CurrentUtcDateTime");
        }

39. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression TruncateTime(this DbExpression dateValue)
        {
            EntityUtil.CheckArgumentNull(dateValue, "dateValue");
            return InvokeCanonicalFunction("TruncateTime", dateValue);
        }

40. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression CreateDateTime(DbExpression year, DbExpression month, DbExpression day, DbExpression hour, DbExpression minute, DbExpression second)
        {
            EntityUtil.CheckArgumentNull(year, "year");
            EntityUtil.CheckArgumentNull(month, "month");
            EntityUtil.CheckArgumentNull(day, "day");
            EntityUtil.CheckArgumentNull(hour, "hour");
            EntityUtil.CheckArgumentNull(minute, "minute");
            EntityUtil.CheckArgumentNull(second, "second");
            return InvokeCanonicalFunction("CreateDateTime", year, month, day, hour, minute, second);
        }

41. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression CreateDateTimeOffset(DbExpression year, DbExpression month, DbExpression day, DbExpression hour, DbExpression minute, DbExpression second, DbExpression timeZoneOffset)
        {
            EntityUtil.CheckArgumentNull(year, "year");
            EntityUtil.CheckArgumentNull(month, "month");
            EntityUtil.CheckArgumentNull(day, "day");
            EntityUtil.CheckArgumentNull(hour, "hour");
            EntityUtil.CheckArgumentNull(minute, "minute");
            EntityUtil.CheckArgumentNull(second, "second");
            EntityUtil.CheckArgumentNull(timeZoneOffset, "timeZoneOffset");
            return InvokeCanonicalFunction("CreateDateTimeOffset", year, month, day, hour, minute, second, timeZoneOffset);
        }

42. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression CreateTime(DbExpression hour, DbExpression minute, DbExpression second)
        {
            EntityUtil.CheckArgumentNull(hour, "hour");
            EntityUtil.CheckArgumentNull(minute, "minute");
            EntityUtil.CheckArgumentNull(second, "second");
            return InvokeCanonicalFunction("CreateTime", hour, minute, second);
        }

43. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression AddYears(this DbExpression dateValue, DbExpression addValue)
        {
            EntityUtil.CheckArgumentNull(dateValue, "dateValue");
            EntityUtil.CheckArgumentNull(addValue, "addValue");
            return InvokeCanonicalFunction("AddYears", dateValue, addValue);
        }

44. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression AddMonths(this DbExpression dateValue, DbExpression addValue)
        {
            EntityUtil.CheckArgumentNull(dateValue, "dateValue");
            EntityUtil.CheckArgumentNull(addValue, "addValue");
            return InvokeCanonicalFunction("AddMonths", dateValue, addValue);
        }

45. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression AddDays(this DbExpression dateValue, DbExpression addValue)
        {
            EntityUtil.CheckArgumentNull(dateValue, "dateValue");
            EntityUtil.CheckArgumentNull(addValue, "addValue");
            return InvokeCanonicalFunction("AddDays", dateValue, addValue);
        }

46. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression AddHours(this DbExpression timeValue, DbExpression addValue)
        {
            EntityUtil.CheckArgumentNull(timeValue, "timeValue");
            EntityUtil.CheckArgumentNull(addValue, "addValue");
            return InvokeCanonicalFunction("AddHours", timeValue, addValue);
        }

47. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression AddMinutes(this DbExpression timeValue, DbExpression addValue)
        {
            EntityUtil.CheckArgumentNull(timeValue, "timeValue");
            EntityUtil.CheckArgumentNull(addValue, "addValue");
            return InvokeCanonicalFunction("AddMinutes", timeValue, addValue);
        }

48. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression AddSeconds(this DbExpression timeValue, DbExpression addValue)
        {
            EntityUtil.CheckArgumentNull(timeValue, "timeValue");
            EntityUtil.CheckArgumentNull(addValue, "addValue");
            return InvokeCanonicalFunction("AddSeconds", timeValue, addValue);
        }

49. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression AddMilliseconds(this DbExpression timeValue, DbExpression addValue)
        {
            EntityUtil.CheckArgumentNull(timeValue, "timeValue");
            EntityUtil.CheckArgumentNull(addValue, "addValue");
            return InvokeCanonicalFunction("AddMilliseconds", timeValue, addValue);
        }

50. Example

Project: referencesource
Source File: EdmFunctions.cs
View license
public static DbFunctionExpression AddMicroseconds(this DbExpression timeValue, DbExpression addValue)
        {
            EntityUtil.CheckArgumentNull(timeValue, "timeValue");
            EntityUtil.CheckArgumentNull(addValue, "addValue");
            return InvokeCanonicalFunction("AddMicroseconds", timeValue, addValue);
        }