EdmFunctions.AddMonths(DbExpression, DbExpression) Metodo

Definizione

Crea un DbFunctionExpression oggetto che richiama la funzione 'AddMonths' canonica con gli argomenti specificati, che devono avere tipi di risultato DateTime o 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 ^ AddMonths(System::Data::Common::CommandTrees::DbExpression ^ dateValue, System::Data::Common::CommandTrees::DbExpression ^ addValue);
public static System.Data.Common.CommandTrees.DbFunctionExpression AddMonths(this System.Data.Common.CommandTrees.DbExpression dateValue, System.Data.Common.CommandTrees.DbExpression addValue);
static member AddMonths : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function AddMonths (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 mesi da aggiungere a dateValue.

Valori restituiti

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

Eccezioni

dateValue o addValue è null.

dateValue o addValue non è valido.

Si applica a