Sdílet prostřednictvím


EdmFunctions.AddSeconds(DbExpression, DbExpression) Metoda

Definice

Vytvoří , DbFunctionExpression který vyvolá kanonický 'AddSeconds' funkce se zadanými argumenty, které musí mít DateTime, DateTimeOffset nebo Time a celočíselné typy výsledků. Typ výsledku výrazu je stejný jako typ výsledku výrazu timeValue.

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

Parametry

timeValue
DbExpression

Výraz, který určuje hodnotu, ke které addValue se má přidat.

addValue
DbExpression

Výraz, který určuje počet sekund, který se má přidat do timeValue.

Návraty

Nový DbFunctionExpression, který přičte počet sekund zadaný parametrem addValue k hodnotě zadané parametrem timeValue.

Výjimky

timeValue nebo addValue je null.

timeValue nebo addValue je neplatný.

Platí pro