EdmFunctions.DiffDays(DbExpression, DbExpression) Metoda

Definicja

Tworzy obiekt DbFunctionExpression , który wywołuje funkcję kanoniczną "DiffDays" z określonymi argumentami, które muszą mieć typ wyniku DateTime lub DateTimeOffset. Typ wyniku wyrażenia to Edm.Int32.

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

Parametry

dateValue1
DbExpression

Wyrażenie określające argument pierwszej wartości daty.

dateValue2
DbExpression

Wyrażenie, które określa drugi argument wartości daty.

Zwraca

Nowa funkcja DbFunctionExpression, która zwraca liczbę dni, która jest różnicą między wartościami dateValue1 i dateValue2.

Dotyczy