EdmFunctions.AddNanoseconds(DbExpression, DbExpression) Metoda

Definice

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

Návraty

Nový DbFunctionExpression, který přidá počet nanosekund určených addValue hodnotou určenou timeValuehodnotou .

Výjimky

timeValue nebo addValue je null.

timeValue nebo addValue je neplatný.

Platí pro