EdmFunctions.AddSeconds(DbExpression, DbExpression) Metoda

Definice

DbFunctionExpression Vytvoří, která vyvolá kanonickou funkci AddSeconds se zadanými argumenty, které musí obsahovat typy výsledků DateTime, DateTimeOffset nebo Time a celočíselné typy. Typ výsledku výrazu je stejný jako typ výsledku 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 mají přidat do timeValue.

Návraty

Nový DbFunctionExpression, který sečte počet sekund určený addValue hodnotou určenou timeValuehodnotou .

Výjimky

timeValue nebo addValue je null.

timeValue nebo addValue je neplatný.

Platí pro