EdmFunctions.DiffMilliseconds(DbExpression, DbExpression) 方法

定義

建立 DbFunctionExpression 一個,呼叫標準的「DiffMilliseconds」函式,並指定參數,且每個參數必須有 DateTime、DateTimeOffset 或 Time 結果型別。 表達式的結果類型為Edm.Int32。

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

參數

timeValue1
DbExpression

一個指定首次時間值參數的表達式。

timeValue2
DbExpression

一個指定第二個時間值參數的表達式。

傳回

一個新的 DbFunctionExpression,回傳與之間的毫timeValue1timeValue2秒數。

適用於