EdmFunctions.DiffDays(DbExpression, DbExpression) Metoda

Definice

Vytvoří, DbFunctionExpression který vyvolá kanonickou funkci DiffDays se zadanými argumenty, které musí mít každý typ výsledku DateTime nebo DateTimeOffset. Typ výsledku výrazu je 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

Výraz, který určuje první argument hodnoty data.

dateValue2
DbExpression

Výraz, který určuje druhý argument hodnoty data.

Návraty

Nový DbFunctionExpression, který vrátí počet dní, které je rozdíl mezi dateValue1 a dateValue2.

Platí pro