EdmFunctions.AddDays(DbExpression, DbExpression) Metoda

Definice

Vytvoří DbFunctionExpression , která vyvolá kanonickou funkci AddDays se zadanými argumenty, které musí mít typy výsledků DateTime nebo DateTimeOffset a celočíselné typy. Typ výsledku výrazu je stejný jako typ výsledku dateValue.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ AddDays(System::Data::Common::CommandTrees::DbExpression ^ dateValue, System::Data::Common::CommandTrees::DbExpression ^ addValue);
public static System.Data.Common.CommandTrees.DbFunctionExpression AddDays(this System.Data.Common.CommandTrees.DbExpression dateValue, System.Data.Common.CommandTrees.DbExpression addValue);
static member AddDays : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function AddDays (dateValue As DbExpression, addValue As DbExpression) As DbFunctionExpression

Parametry

dateValue
DbExpression

Výraz, který určuje hodnotu, ke které addValue se má přidat.

addValue
DbExpression

Výraz, který určuje počet dnů, které mají být přidány .dateValue

Návraty

Nový DbFunctionExpression, který sečte zadaný počet dní určený addValue hodnotou určenou dateValuehodnotou .

Výjimky

dateValue nebo addValue je null.

dateValue nebo addValue je neplatný.

Platí pro