EdmFunctions.AddSeconds(DbExpression, DbExpression) Metod

Definition

Skapar en DbFunctionExpression som anropar den kanoniska funktionen AddSeconds 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 ^ AddSeconds(System::Data::Common::CommandTrees::DbExpression ^ timeValue, System::Data::Common::CommandTrees::DbExpression ^ addValue);
public static System.Data.Common.CommandTrees.DbFunctionExpression AddSeconds(this System.Data.Common.CommandTrees.DbExpression timeValue, System.Data.Common.CommandTrees.DbExpression addValue);
static member AddSeconds : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function AddSeconds (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 sekunder som ska läggas till i timeValue.

Returer

En ny DbFunctionExpression som lägger till antalet sekunder 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