EdmFunctions.AddMilliseconds(DbExpression, DbExpression) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个 DbFunctionExpression,它使用指定的参数(这些参数必须具有 DateTime、DateTimeOffset 或 Time 以及整数结果类型)调用规范 'AddMilliseconds' 函数。 表达式的结果类型与 timeValue 的结果类型相同。
public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression AddMilliseconds (this System.Data.Entity.Core.Common.CommandTrees.DbExpression timeValue, System.Data.Entity.Core.Common.CommandTrees.DbExpression addValue);
static member AddMilliseconds : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function AddMilliseconds (timeValue As DbExpression, addValue As DbExpression) As DbFunctionExpression
参数
- timeValue
- DbExpression
一个表达式,指定要向其添加 addValueshould 的值。
- addValue
- DbExpression
一个表达式,指定要添加到 timeValue 的毫秒数。
返回
一个新的 DbFunctionExpression,它将 addValue 指定的毫秒数添加到 timeValue 指定的值。