EdmFunctions.DiffMilliseconds(DbExpression, DbExpression) Metoda

Definicja

Tworzy obiekt DbFunctionExpression , który wywołuje funkcję kanoniczną "DiffMilliseconds" z określonymi argumentami, które muszą mieć typ wyniku DateTime, DateTimeOffset lub Time. Typ wyniku wyrażenia to 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

Parametry

timeValue1
DbExpression

Wyrażenie określające argument wartości po raz pierwszy.

timeValue2
DbExpression

Wyrażenie, które określa argument wartości czasu drugiego.

Zwraca

Nowa funkcja DbFunctionExpression zwracająca liczbę milisekund, która jest różnicą między wartościami timeValue1 i timeValue2.

Dotyczy