EdmFunctions.Month(DbExpression) Método

Definición

Crea una DbFunctionExpression que invoca la función 'Month' canónica con el argumento especificado, que debe tener un tipo de resultado DateTime o DateTimeOffset. El tipo de resultado de la expresión es 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

Parámetros

dateValue
DbExpression

Expresión que especifica el valor del que se debe recuperar el mes.

Devoluciones

Nueva clase DbFunctionExpression que devuelve el valor de mes entero de dateValue.

Excepciones

dateValue es null.

dateValue no es válido.

Se aplica a