EdmFunctions.DiffSeconds(DbExpression, DbExpression) Metoda

Definice

Vytvoří, DbFunctionExpression který vyvolá kanonickou funkci DiffSeconds 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 ^ DiffSeconds(System::Data::Common::CommandTrees::DbExpression ^ timeValue1, System::Data::Common::CommandTrees::DbExpression ^ timeValue2);
public static System.Data.Common.CommandTrees.DbFunctionExpression DiffSeconds(this System.Data.Common.CommandTrees.DbExpression timeValue1, System.Data.Common.CommandTrees.DbExpression timeValue2);
static member DiffSeconds : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function DiffSeconds (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 sekund, který je rozdíl mezi timeValue1 a timeValue2.

Platí pro