EdmFunctions.Month(DbExpression) Metodo

Definizione

Crea un oggetto DbFunctionExpression che richiama la funzione canonica "Month" con l'argomento specificato, che deve avere DateTime o DateTimeOffset come tipo di risultato. Il tipo di risultato dell'espressione è Edm.Int32.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ Month(System::Data::Common::CommandTrees::DbExpression ^ dateValue);
public static System.Data.Common.CommandTrees.DbFunctionExpression Month (this System.Data.Common.CommandTrees.DbExpression dateValue);
static member Month : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Month (dateValue As DbExpression) As DbFunctionExpression

Parametri

dateValue
DbExpression

Espressione che specifica il valore da cui recuperare il mese.

Restituisce

Nuovo DbFunctionExpression che restituisce il valore del mese intero da dateValue.

Eccezioni

dateValue è null.

dateValue non è valido.

Si applica a