EdmFunctions.GetTotalOffsetMinutes(DbExpression) 方法

定义

创建一个 DbFunctionExpression,它使用指定的参数(该参数必须具有 DateTimeOffset 结果类型)调用规范“GetTotalOffsetMinutes”函数。 该表达式的结果类型为 Edm.Int32。

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression GetTotalOffsetMinutes (this System.Data.Entity.Core.Common.CommandTrees.DbExpression dateTimeOffsetArgument);
static member GetTotalOffsetMinutes : System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function GetTotalOffsetMinutes (dateTimeOffsetArgument As DbExpression) As DbFunctionExpression

参数

dateTimeOffsetArgument
DbExpression

一个表达式,指定应从中检索相对于 GMT 的偏移分钟数的 DateTimeOffset 值。

返回

新的 DbFunctionExpression 返回与 GMT 偏移的分钟数 dateTimeOffsetArgument。

适用于