EdmFunctions.GetTotalOffsetMinutes Method (DbExpression)
Creates a DbFunctionExpression that invokes the canonical 'GetTotalOffsetMinutes' function with the specified argument, which must have a DateTimeOffset result type. The result type of the expression is Edm.Int32.
Assembly: EntityFramework (in EntityFramework.dll)
public static DbFunctionExpression GetTotalOffsetMinutes( this DbExpression dateTimeOffsetArgument )
Parameters
- dateTimeOffsetArgument
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
An expression that specifies the DateTimeOffset value from which the minute offset from GMT should be retrieved.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpressionA new DbFunctionExpression that returns the numbers of minute dateTimeOffsetArgument is offset from GMT.
Exception | Condition |
---|---|
ArgumentNullException | dateTimeOffsetArgument is null. |
ArgumentException | No overload of the canonical 'GetTotalOffsetMinutes' function accepts an argument with the result type of dateTimeOffsetArgument. |