共用方式為


EdmFunctions.DiffNanoseconds(DbExpression, DbExpression) 方法

定義

建立會使用指定引數叫用標準 'DiffNanoseconds' 函式的 DbFunctionExpression,其中的引數都必須具有 DateTime、DateTimeOffset 或 Time 結果型別。 運算式的結果類型為 Edm.Int32。

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

參數

timeValue1
DbExpression

指定第一個時間值引數的運算式。

timeValue2
DbExpression

指定第二個時間值引數的運算式。

傳回

傳回 與 timeValue2之間timeValue1差異之奈秒數的新 DbFunctionExpression。

適用於