语言

EdmFunctions.Second(DbExpression) 方法

定义

创建一个 DbFunctionExpression 具有指定参数的规范“Second”函数,该函数必须具有 DateTime、DateTimeOffset 或 Time 结果类型。 表达式的结果类型为 Edm.Int32。

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

参数

timeValue
DbExpression

一个表达式,指定应从中检索第二个值的值。

返回

一个新的 DbFunctionExpression,从 timeValue 返回整数第二个值。

适用于