EdmFunctions.AddNanoseconds(DbExpression, DbExpression) Metod

Definition

Skapar en DbFunctionExpression som anropar den kanoniska funktionen AddNanoseconds med de angivna argumenten, som måste ha resultattyperna DateTime, DateTimeOffset eller Time och heltal. Resultattypen för uttrycket är samma som resultattypen timeValueför .

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

Parametrar

timeValue
DbExpression

Ett uttryck som anger det värde som addValue ska läggas till.

addValue
DbExpression

Ett uttryck som anger antalet nanosekunder som ska läggas till i timeValue.

Returer

En ny DbFunctionExpression som lägger till antalet nanosekunder som anges av addValue till värdet som anges av timeValue.

Undantag

timeValue eller addValue är null.

timeValue eller addValue är ogiltig.

Gäller för