Sdílet prostřednictvím


EdmFunctions.AddMilliseconds(DbExpression, DbExpression) Metoda

Definice

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

Návraty

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

Platí pro