EdmFunctions.DiffMinutes(DbExpression, DbExpression) Metoda

Definice

Vytvoří DbFunctionExpression , který vyvolá kanonickou funkci DiffMinutes se zadanými argumenty, které musí mít každý typ výsledku DateTime, DateTimeOffset nebo Time. Typ výsledku výrazu je Edm.Int32.

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

Parametry

timeValue1
DbExpression

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

timeValue2
DbExpression

Výraz, který určuje argument hodnoty druhého času.

Návraty

Nový DbFunctionExpression, který vrátí počet minut, které je rozdíl mezi timeValue1 a timeValue2.

Platí pro