语言

EdmFunctions.Millisecond(DbExpression) 方法

定义

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

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

参数

timeValue
DbExpression

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

返回

一个新的 DbFunctionExpression,返回 timeValue 中的整数毫秒值。

适用于