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:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ AddMilliseconds(System::Data::Common::CommandTrees::DbExpression ^ timeValue, System::Data::Common::CommandTrees::DbExpression ^ addValue);
public static System.Data.Common.CommandTrees.DbFunctionExpression AddMilliseconds(this System.Data.Common.CommandTrees.DbExpression timeValue, System.Data.Common.CommandTrees.DbExpression addValue);
static member AddMilliseconds : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.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é addValue se má přidat.

addValue
DbExpression

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

Návraty

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

Výjimky

timeValue nebo addValue je null.

timeValue nebo addValue je neplatný.

Platí pro