Sdílet prostřednictvím


EdmFunctions.AddMinutes(DbExpression, DbExpression) Metoda

Definice

Vytvoří objekt DbFunctionExpression , který vyvolá kanonickou funkci AddMinutes 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 AddMinutes (this System.Data.Entity.Core.Common.CommandTrees.DbExpression timeValue, System.Data.Entity.Core.Common.CommandTrees.DbExpression addValue);
static member AddMinutes : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function AddMinutes (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 minut, které se mají přidat do hodnoty timeValue.

Návraty

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

Platí pro