EdmFunctions.AddNanoseconds(DbExpression, DbExpression) 方法

定義

建立會使用指定引數叫用標準 'AddNanoseconds' 函式的 DbFunctionExpression,其中的引數必須具有 DateTime、DateTimeOffset 或 Time 以及整數結果型別。 表達式的結果類型與的結果類型 timeValue相同。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ AddNanoseconds(System::Data::Common::CommandTrees::DbExpression ^ timeValue, System::Data::Common::CommandTrees::DbExpression ^ addValue);
public static System.Data.Common.CommandTrees.DbFunctionExpression AddNanoseconds (this System.Data.Common.CommandTrees.DbExpression timeValue, System.Data.Common.CommandTrees.DbExpression addValue);
static member AddNanoseconds : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function AddNanoseconds (timeValue As DbExpression, addValue As DbExpression) As DbFunctionExpression

參數

timeValue
DbExpression

表達式,指定要加入的值 addValue

addValue
DbExpression

表達式,指定要加入至 timeValue的奈秒數。

傳回

新的 DbFunctionExpression,可將 所 addValue 指定的奈秒數新增至 所 timeValue指定的值。

例外狀況

timeValueaddValuenull

timeValueaddValue 無效。

適用於