Sdílet prostřednictvím


EdmFunctions.AddSeconds(DbExpression, DbExpression) Metoda

Definice

Vytvoří objekt DbFunctionExpression , který vyvolá kanonickou funkci AddSeconds se zadanými argumenty, které musí mít typy výsledků DateTime, DateTimeOffset nebo Time a celé číslo. Typ výsledku výrazu je stejný jako typ výsledku timeValue.

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression AddSeconds (this System.Data.Entity.Core.Common.CommandTrees.DbExpression timeValue, System.Data.Entity.Core.Common.CommandTrees.DbExpression addValue);
static member AddSeconds : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.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é addValueshould přidat.

addValue
DbExpression

Výraz, který určuje počet sekund, které se mají přidat do hodnoty timeValue.

Návraty

Nový DbFunctionExpression, který přidá počet sekund zadaný addValue k hodnotě zadané timeValue.

Platí pro