EdmFunctions.Month(DbExpression) Método

Definição

Cria um DbFunctionExpression que invoca a função 'Month' canônica com o argumento especificado, que deve ter um tipo de resultado DateTime ou DateTimeOffset. O tipo de resultado da expressão é 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

Uma expressão que especifica o valor do qual o mês deve ser recuperado.

Retornos

Uma nova DbFunctionExpression que retorna o valor de mês inteiro de dateValue.

Exceções

dateValue é null.

dateValue é inválido.

Aplica-se a