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