EntityFunctions.DiffYears EntityFunctions.DiffYears EntityFunctions.DiffYears EntityFunctions.DiffYears Method

Definición

Invoca a la función canónica DiffYears.Invokes the canonical DiffYears function. Para información sobre la función canónica DiffYears, vea Funciones canónicas de fecha y hora.For information about the canonical DiffYears function, see Date and Time Canonical Functions.

Sobrecargas

DiffYears(Nullable<DateTime>, Nullable<DateTime>) DiffYears(Nullable<DateTime>, Nullable<DateTime>) DiffYears(Nullable<DateTime>, Nullable<DateTime>) DiffYears(Nullable<DateTime>, Nullable<DateTime>)

Invoca a la función canónica DiffYears.Invokes the canonical DiffYears function. Para información sobre la función canónica DiffYears, vea Funciones canónicas de fecha y hora.For information about the canonical DiffYears function, see Date and Time Canonical Functions.

DiffYears(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) DiffYears(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) DiffYears(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) DiffYears(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

Invoca a la función canónica DiffYears.Invokes the canonical DiffYears function. Para información sobre la función canónica DiffYears, vea Funciones canónicas de fecha y hora.For information about the canonical DiffYears function, see Date and Time Canonical Functions.

Comentarios

No se puede llamar directamente a esta función.You cannot call this function directly. Esta función solo puede aparecer dentro de una consulta LINQ to Entities.This function can only appear within a LINQ to Entities query.

Esta función se traduce a una función correspondiente en la base de datos.This function is translated to a corresponding function in the database.

DiffYears(Nullable<DateTime>, Nullable<DateTime>) DiffYears(Nullable<DateTime>, Nullable<DateTime>) DiffYears(Nullable<DateTime>, Nullable<DateTime>) DiffYears(Nullable<DateTime>, Nullable<DateTime>)

Invoca a la función canónica DiffYears.Invokes the canonical DiffYears function. Para información sobre la función canónica DiffYears, vea Funciones canónicas de fecha y hora.For information about the canonical DiffYears function, see Date and Time Canonical Functions.

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

Parámetros

dateValue1
Nullable<DateTime>

Una fecha válida.A valid date.

dateValue2
Nullable<DateTime>

Una fecha válida.A valid date.

Devoluciones

Número de años entre dateValue1 y dateValue2.The number of years between dateValue1 and dateValue2.

Comentarios

No se puede llamar directamente a esta función.You cannot call this function directly. Esta función solo puede aparecer dentro de una consulta LINQ to Entities.This function can only appear within a LINQ to Entities query.

Esta función se traduce a una función correspondiente en la base de datos.This function is translated to a corresponding function in the database.

DiffYears(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) DiffYears(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) DiffYears(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) DiffYears(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

Invoca a la función canónica DiffYears.Invokes the canonical DiffYears function. Para información sobre la función canónica DiffYears, vea Funciones canónicas de fecha y hora.For information about the canonical DiffYears function, see Date and Time Canonical Functions.

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

Parámetros

dateValue1
Nullable<DateTimeOffset>

Un desplazamiento de fecha y hora válido.A valid date time offset.

dateValue2
Nullable<DateTimeOffset>

Un desplazamiento de fecha y hora válido.A valid date time offset.

Devoluciones

Número de años entre dateValue1 y dateValue2.The number of years between dateValue1 and dateValue2.

Comentarios

No se puede llamar directamente a esta función.You cannot call this function directly. Esta función solo puede aparecer dentro de una consulta LINQ to Entities.This function can only appear within a LINQ to Entities query.

Esta función se traduce a una función correspondiente en la base de datos.This function is translated to a corresponding function in the database.

Se aplica a