EdmFunctions.AddDays(DbExpression, DbExpression) Metodo

Definizione

Crea un oggetto DbFunctionExpression che richiama la funzione 'AddDays' canonica con gli argomenti specificati, che devono presentare tipi di risultato DateTime, DateTimeOffset e Integer. Il tipo di risultato dell'espressione è uguale al tipo di risultato di 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

Parametri

dateValue
DbExpression

Espressione che specifica il valore a cui addValue aggiungere.

addValue
DbExpression

Espressione che specifica il numero di giorni da aggiungere a dateValue.

Restituisce

Nuovo DbFunctionExpression che aggiunge il numero specificato di giorni specificato da addValue al valore specificato da dateValue.

Eccezioni

dateValue o addValue è null.

dateValue o addValue non è valido.

Si applica a