EntityFunctions.DiffMonths Método

Definição

Invoca a função DiffMonths canônica.Invokes the canonical DiffMonths function. Para obter informações sobre a função DiffMonths canônica, consulte Funções canônicas de data e hora.For information about the canonical DiffMonths function, see Date and Time Canonical Functions.

Sobrecargas

DiffMonths(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

Invoca a função DiffMonths canônica.Invokes the canonical DiffMonths function. Para obter informações sobre a função DiffMonths canônica, consulte Funções canônicas de data e hora.For information about the canonical DiffMonths function, see Date and Time Canonical Functions.

DiffMonths(Nullable<DateTime>, Nullable<DateTime>)

Invoca a função DiffMonths canônica.Invokes the canonical DiffMonths function. Para obter informações sobre a função DiffMonths canônica, consulte Funções canônicas de data e hora.For information about the canonical DiffMonths function, see Date and Time Canonical Functions.

Comentários

Você não pode chamar essa função diretamente.You cannot call this function directly. Essa função só pode aparecer dentro de uma consulta LINQ to Entities.This function can only appear within a LINQ to Entities query.

Essa função é convertida em uma função correspondente no banco de dados.This function is translated to a corresponding function in the database.

DiffMonths(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

Invoca a função DiffMonths canônica.Invokes the canonical DiffMonths function. Para obter informações sobre a função DiffMonths canônica, consulte Funções canônicas de data e hora.For information about the canonical DiffMonths function, see Date and Time Canonical Functions.

public:
 static Nullable<int> DiffMonths(Nullable<DateTimeOffset> dateValue1, Nullable<DateTimeOffset> dateValue2);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "DiffMonths")]
public static int? DiffMonths (DateTimeOffset? dateValue1, DateTimeOffset? dateValue2);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "DiffMonths")>]
static member DiffMonths : Nullable<DateTimeOffset> * Nullable<DateTimeOffset> -> Nullable<int>
Public Shared Function DiffMonths (dateValue1 As Nullable(Of DateTimeOffset), dateValue2 As Nullable(Of DateTimeOffset)) As Nullable(Of Integer)

Parâmetros

dateValue1
Nullable<DateTimeOffset>

Um deslocamento de data e hora válido.A valid date time offset.

dateValue2
Nullable<DateTimeOffset>

Um deslocamento de data e hora válido.A valid date time offset.

Retornos

Nullable<Int32>

O número de meses entre dateValue1 e dateValue2.The number of months between dateValue1 and dateValue2.

Atributos

Comentários

Você não pode chamar essa função diretamente.You cannot call this function directly. Essa função só pode aparecer dentro de uma consulta LINQ to Entities.This function can only appear within a LINQ to Entities query.

Essa função é convertida em uma função correspondente no banco de dados.This function is translated to a corresponding function in the database.

Aplica-se a

DiffMonths(Nullable<DateTime>, Nullable<DateTime>)

Invoca a função DiffMonths canônica.Invokes the canonical DiffMonths function. Para obter informações sobre a função DiffMonths canônica, consulte Funções canônicas de data e hora.For information about the canonical DiffMonths function, see Date and Time Canonical Functions.

public:
 static Nullable<int> DiffMonths(Nullable<DateTime> dateValue1, Nullable<DateTime> dateValue2);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "DiffMonths")]
public static int? DiffMonths (DateTime? dateValue1, DateTime? dateValue2);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "DiffMonths")>]
static member DiffMonths : Nullable<DateTime> * Nullable<DateTime> -> Nullable<int>
Public Shared Function DiffMonths (dateValue1 As Nullable(Of DateTime), dateValue2 As Nullable(Of DateTime)) As Nullable(Of Integer)

Parâmetros

dateValue1
Nullable<DateTime>

Uma data válida.A valid date.

dateValue2
Nullable<DateTime>

Uma data válida.A valid date.

Retornos

Nullable<Int32>

O número de meses entre dateValue1 e dateValue2.The number of months between dateValue1 and dateValue2.

Atributos

Comentários

Você não pode chamar essa função diretamente.You cannot call this function directly. Essa função só pode aparecer dentro de uma consulta LINQ to Entities.This function can only appear within a LINQ to Entities query.

Essa função é convertida em uma função correspondente no banco de dados.This function is translated to a corresponding function in the database.

Aplica-se a