Compartir a través de


SqlServerDbFunctionsExtensions.DateDiffNanosecond Método

Definición

Sobrecargas

DateDiffNanosecond(DbFunctions, Nullable<TimeOnly>, Nullable<TimeOnly>)

Cuenta el número de límites nanosegundos cruzados entre y startTimeendTime. Corresponde a la SQL Server .DATEDIFF(nanosecond, @startTime, @endTime)

DateDiffNanosecond(DbFunctions, TimeSpan, TimeSpan)

Cuenta el número de límites nanosegundos cruzados entre y startTimeSpanendTimeSpan. Corresponde a la SQL Server .DATEDIFF(nanosecond, @startTimeSpan, @endTimeSpan)

DateDiffNanosecond(DbFunctions, TimeOnly, TimeOnly)

Cuenta el número de límites nanosegundos cruzados entre y startTimeendTime. Corresponde a la SQL Server .DATEDIFF(nanosecond, @startTime, @endTime)

DateDiffNanosecond(DbFunctions, Nullable<TimeSpan>, Nullable<TimeSpan>)

Cuenta el número de límites nanosegundos cruzados entre y startTimeSpanendTimeSpan. Corresponde a la SQL Server .DATEDIFF(nanosecond, @startTimeSpan, @endTimeSpan)

DateDiffNanosecond(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

Cuenta el número de límites nanosegundos cruzados entre y startDateendDate. Corresponde a la SQL Server .DATEDIFF(nanosecond, @startDate, @endDate)

DateDiffNanosecond(DbFunctions, DateTimeOffset, DateTimeOffset)

Cuenta el número de límites nanosegundos cruzados entre y startDateendDate. Corresponde a la SQL Server .DATEDIFF(nanosecond, @startDate, @endDate)

DateDiffNanosecond(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>)

Cuenta el número de límites nanosegundos cruzados entre y startDateendDate. Corresponde a la SQL Server .DATEDIFF(nanosecond, @startDate, @endDate)

DateDiffNanosecond(DbFunctions, DateOnly, DateOnly)

Cuenta el número de límites nanosegundos cruzados entre y startDateendDate. Corresponde a la SQL Server .DATEDIFF(nanosecond, @startDate, @endDate)

DateDiffNanosecond(DbFunctions, Nullable<DateTime>, Nullable<DateTime>)

Cuenta el número de límites nanosegundos cruzados entre y startDateendDate. Corresponde a la SQL Server .DATEDIFF(nanosecond, @startDate, @endDate)

DateDiffNanosecond(DbFunctions, DateTime, DateTime)

Cuenta el número de límites nanosegundos cruzados entre y startDateendDate. Corresponde a la SQL Server .DATEDIFF(nanosecond, @startDate, @endDate)

DateDiffNanosecond(DbFunctions, Nullable<TimeOnly>, Nullable<TimeOnly>)

Cuenta el número de límites nanosegundos cruzados entre y startTimeendTime. Corresponde a la SQL Server .DATEDIFF(nanosecond, @startTime, @endTime)

public static int? DateDiffNanosecond (this Microsoft.EntityFrameworkCore.DbFunctions _, TimeOnly? startTime, TimeOnly? endTime);
static member DateDiffNanosecond : Microsoft.EntityFrameworkCore.DbFunctions * Nullable<TimeOnly> * Nullable<TimeOnly> -> Nullable<int>
<Extension()>
Public Function DateDiffNanosecond (_ As DbFunctions, startTime As Nullable(Of TimeOnly), endTime As Nullable(Of TimeOnly)) As Nullable(Of Integer)

Parámetros

_
DbFunctions

Instancia de DbFunctions.

startTime
Nullable<TimeOnly>

Hora de inicio del cálculo.

endTime
Nullable<TimeOnly>

Hora de finalización del cálculo.

Devoluciones

Número de límites nanosegundos cruzados entre las veces.

Comentarios

Consulte Funciones de base de datos y Acceso a SQL Server y bases de datos de Azure SQL con EF Core para obtener más información y ejemplos.

Se aplica a

DateDiffNanosecond(DbFunctions, TimeSpan, TimeSpan)

Cuenta el número de límites nanosegundos cruzados entre y startTimeSpanendTimeSpan. Corresponde a la SQL Server .DATEDIFF(nanosecond, @startTimeSpan, @endTimeSpan)

public static int DateDiffNanosecond (this Microsoft.EntityFrameworkCore.DbFunctions _, TimeSpan startTimeSpan, TimeSpan endTimeSpan);
static member DateDiffNanosecond : Microsoft.EntityFrameworkCore.DbFunctions * TimeSpan * TimeSpan -> int
<Extension()>
Public Function DateDiffNanosecond (_ As DbFunctions, startTimeSpan As TimeSpan, endTimeSpan As TimeSpan) As Integer

Parámetros

_
DbFunctions

Instancia de DbFunctions.

startTimeSpan
TimeSpan

Intervalo de tiempo de inicio para el cálculo.

endTimeSpan
TimeSpan

Intervalo de tiempo final del cálculo.

Devoluciones

Número de límites nanosegundos cruzados entre las fechas.

Comentarios

Consulte Funciones de base de datos y Acceso a SQL Server y bases de datos de Azure SQL con EF Core para obtener más información y ejemplos.

Se aplica a

DateDiffNanosecond(DbFunctions, TimeOnly, TimeOnly)

Cuenta el número de límites nanosegundos cruzados entre y startTimeendTime. Corresponde a la SQL Server .DATEDIFF(nanosecond, @startTime, @endTime)

public static int DateDiffNanosecond (this Microsoft.EntityFrameworkCore.DbFunctions _, TimeOnly startTime, TimeOnly endTime);
static member DateDiffNanosecond : Microsoft.EntityFrameworkCore.DbFunctions * TimeOnly * TimeOnly -> int
<Extension()>
Public Function DateDiffNanosecond (_ As DbFunctions, startTime As TimeOnly, endTime As TimeOnly) As Integer

Parámetros

_
DbFunctions

Instancia de DbFunctions.

startTime
TimeOnly

Hora de inicio del cálculo.

endTime
TimeOnly

Hora de finalización del cálculo.

Devoluciones

Número de límites nanosegundos cruzados entre las veces.

Comentarios

Consulte Funciones de base de datos y Acceso a SQL Server y bases de datos de Azure SQL con EF Core para obtener más información y ejemplos.

Se aplica a

DateDiffNanosecond(DbFunctions, Nullable<TimeSpan>, Nullable<TimeSpan>)

Cuenta el número de límites nanosegundos cruzados entre y startTimeSpanendTimeSpan. Corresponde a la SQL Server .DATEDIFF(nanosecond, @startTimeSpan, @endTimeSpan)

public static int? DateDiffNanosecond (this Microsoft.EntityFrameworkCore.DbFunctions _, TimeSpan? startTimeSpan, TimeSpan? endTimeSpan);
static member DateDiffNanosecond : Microsoft.EntityFrameworkCore.DbFunctions * Nullable<TimeSpan> * Nullable<TimeSpan> -> Nullable<int>
<Extension()>
Public Function DateDiffNanosecond (_ As DbFunctions, startTimeSpan As Nullable(Of TimeSpan), endTimeSpan As Nullable(Of TimeSpan)) As Nullable(Of Integer)

Parámetros

_
DbFunctions

Instancia de DbFunctions.

startTimeSpan
Nullable<TimeSpan>

Intervalo de tiempo de inicio para el cálculo.

endTimeSpan
Nullable<TimeSpan>

Intervalo de tiempo final del cálculo.

Devoluciones

Número de límites nanosegundos cruzados entre las fechas.

Comentarios

Consulte Funciones de base de datos y Acceso a SQL Server y bases de datos de Azure SQL con EF Core para obtener más información y ejemplos.

Se aplica a

DateDiffNanosecond(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

Cuenta el número de límites nanosegundos cruzados entre y startDateendDate. Corresponde a la SQL Server .DATEDIFF(nanosecond, @startDate, @endDate)

public static int? DateDiffNanosecond (this Microsoft.EntityFrameworkCore.DbFunctions _, DateTimeOffset? startDate, DateTimeOffset? endDate);
static member DateDiffNanosecond : Microsoft.EntityFrameworkCore.DbFunctions * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> -> Nullable<int>
<Extension()>
Public Function DateDiffNanosecond (_ As DbFunctions, startDate As Nullable(Of DateTimeOffset), endDate As Nullable(Of DateTimeOffset)) As Nullable(Of Integer)

Parámetros

_
DbFunctions

Instancia de DbFunctions.

startDate
Nullable<DateTimeOffset>

Fecha de inicio del cálculo.

endDate
Nullable<DateTimeOffset>

Fecha de finalización del cálculo.

Devoluciones

Número de límites nanosegundos cruzados entre las fechas.

Comentarios

Consulte Funciones de base de datos y Acceso a SQL Server y bases de datos de Azure SQL con EF Core para obtener más información y ejemplos.

Se aplica a

DateDiffNanosecond(DbFunctions, DateTimeOffset, DateTimeOffset)

Cuenta el número de límites nanosegundos cruzados entre y startDateendDate. Corresponde a la SQL Server .DATEDIFF(nanosecond, @startDate, @endDate)

public static int DateDiffNanosecond (this Microsoft.EntityFrameworkCore.DbFunctions _, DateTimeOffset startDate, DateTimeOffset endDate);
static member DateDiffNanosecond : Microsoft.EntityFrameworkCore.DbFunctions * DateTimeOffset * DateTimeOffset -> int
<Extension()>
Public Function DateDiffNanosecond (_ As DbFunctions, startDate As DateTimeOffset, endDate As DateTimeOffset) As Integer

Parámetros

_
DbFunctions

Instancia de DbFunctions.

startDate
DateTimeOffset

Fecha de inicio del cálculo.

endDate
DateTimeOffset

Fecha de finalización del cálculo.

Devoluciones

Número de límites nanosegundos cruzados entre las fechas.

Comentarios

Consulte Funciones de base de datos y Acceso a SQL Server y bases de datos de Azure SQL con EF Core para obtener más información y ejemplos.

Se aplica a

DateDiffNanosecond(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>)

Cuenta el número de límites nanosegundos cruzados entre y startDateendDate. Corresponde a la SQL Server .DATEDIFF(nanosecond, @startDate, @endDate)

public static int? DateDiffNanosecond (this Microsoft.EntityFrameworkCore.DbFunctions _, DateOnly? startDate, DateOnly? endDate);
static member DateDiffNanosecond : Microsoft.EntityFrameworkCore.DbFunctions * Nullable<DateOnly> * Nullable<DateOnly> -> Nullable<int>
<Extension()>
Public Function DateDiffNanosecond (_ As DbFunctions, startDate As Nullable(Of DateOnly), endDate As Nullable(Of DateOnly)) As Nullable(Of Integer)

Parámetros

_
DbFunctions

Instancia de DbFunctions.

startDate
Nullable<DateOnly>

Fecha de inicio del cálculo.

endDate
Nullable<DateOnly>

Fecha de finalización del cálculo.

Devoluciones

Número de límites nanosegundos cruzados entre las fechas.

Comentarios

Consulte Funciones de base de datos y Acceso a SQL Server y bases de datos de Azure SQL con EF Core para obtener más información y ejemplos.

Se aplica a

DateDiffNanosecond(DbFunctions, DateOnly, DateOnly)

Cuenta el número de límites nanosegundos cruzados entre y startDateendDate. Corresponde a la SQL Server .DATEDIFF(nanosecond, @startDate, @endDate)

public static int DateDiffNanosecond (this Microsoft.EntityFrameworkCore.DbFunctions _, DateOnly startDate, DateOnly endDate);
static member DateDiffNanosecond : Microsoft.EntityFrameworkCore.DbFunctions * DateOnly * DateOnly -> int
<Extension()>
Public Function DateDiffNanosecond (_ As DbFunctions, startDate As DateOnly, endDate As DateOnly) As Integer

Parámetros

_
DbFunctions

Instancia de DbFunctions.

startDate
DateOnly

Fecha de inicio del cálculo.

endDate
DateOnly

Fecha de finalización del cálculo.

Devoluciones

Número de límites nanosegundos cruzados entre las fechas.

Comentarios

Consulte Funciones de base de datos y Acceso a SQL Server y bases de datos de Azure SQL con EF Core para obtener más información y ejemplos.

Se aplica a

DateDiffNanosecond(DbFunctions, Nullable<DateTime>, Nullable<DateTime>)

Cuenta el número de límites nanosegundos cruzados entre y startDateendDate. Corresponde a la de DATEDIFF(nanosecond, @startDate, @endDate)SQL Server .

public static int? DateDiffNanosecond (this Microsoft.EntityFrameworkCore.DbFunctions _, DateTime? startDate, DateTime? endDate);
static member DateDiffNanosecond : Microsoft.EntityFrameworkCore.DbFunctions * Nullable<DateTime> * Nullable<DateTime> -> Nullable<int>
<Extension()>
Public Function DateDiffNanosecond (_ As DbFunctions, startDate As Nullable(Of DateTime), endDate As Nullable(Of DateTime)) As Nullable(Of Integer)

Parámetros

_
DbFunctions

Instancia de DbFunctions.

startDate
Nullable<DateTime>

Fecha de inicio del cálculo.

endDate
Nullable<DateTime>

Fecha de finalización del cálculo.

Devoluciones

Número de límites nanosegundos cruzados entre las fechas.

Comentarios

Consulte Funciones de base de datos y Acceso a SQL Server y bases de datos de Azure SQL con EF Core para obtener más información y ejemplos.

Se aplica a

DateDiffNanosecond(DbFunctions, DateTime, DateTime)

Cuenta el número de límites nanosegundos cruzados entre y startDateendDate. Corresponde a la de DATEDIFF(nanosecond, @startDate, @endDate)SQL Server .

public static int DateDiffNanosecond (this Microsoft.EntityFrameworkCore.DbFunctions _, DateTime startDate, DateTime endDate);
static member DateDiffNanosecond : Microsoft.EntityFrameworkCore.DbFunctions * DateTime * DateTime -> int
<Extension()>
Public Function DateDiffNanosecond (_ As DbFunctions, startDate As DateTime, endDate As DateTime) As Integer

Parámetros

_
DbFunctions

Instancia de DbFunctions.

startDate
DateTime

Fecha de inicio del cálculo.

endDate
DateTime

Fecha de finalización del cálculo.

Devoluciones

Número de límites nanosegundos cruzados entre las fechas.

Comentarios

Consulte Funciones de base de datos y Acceso a bases de datos SQL Server y Azure SQL con EF Core para obtener más información y ejemplos.

Se aplica a