Udostępnij przez


SqlServerDbFunctionsExtensions.DateDiffNanosecond Metoda

Definicja

Przeciążenia

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

Zlicza granice nanosekund przekraczane między i startTimeendTime. Odpowiada SQL Server .DATEDIFF(nanosecond, @startTime, @endTime)

DateDiffNanosecond(DbFunctions, TimeSpan, TimeSpan)

Zlicza granice nanosekund przekraczane między i startTimeSpanendTimeSpan. Odpowiada SQL Server .DATEDIFF(nanosecond, @startTimeSpan, @endTimeSpan)

DateDiffNanosecond(DbFunctions, TimeOnly, TimeOnly)

Zlicza granice nanosekund przekraczane między i startTimeendTime. Odpowiada SQL Server .DATEDIFF(nanosecond, @startTime, @endTime)

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

Zlicza granice nanosekund przekraczane między i startTimeSpanendTimeSpan. Odpowiada SQL Server .DATEDIFF(nanosecond, @startTimeSpan, @endTimeSpan)

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

Zlicza granice nanosekund przekraczane między i startDateendDate. Odpowiada SQL Server .DATEDIFF(nanosecond, @startDate, @endDate)

DateDiffNanosecond(DbFunctions, DateTimeOffset, DateTimeOffset)

Zlicza granice nanosekund przekraczane między i startDateendDate. Odpowiada SQL Server .DATEDIFF(nanosecond, @startDate, @endDate)

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

Zlicza granice nanosekund przekraczane między i startDateendDate. Odpowiada SQL Server .DATEDIFF(nanosecond, @startDate, @endDate)

DateDiffNanosecond(DbFunctions, DateOnly, DateOnly)

Zlicza granice nanosekund przekraczane między i startDateendDate. Odpowiada SQL Server .DATEDIFF(nanosecond, @startDate, @endDate)

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

Zlicza granice nanosekund przekraczane między i startDateendDate. Odpowiada SQL Server .DATEDIFF(nanosecond, @startDate, @endDate)

DateDiffNanosecond(DbFunctions, DateTime, DateTime)

Zlicza granice nanosekund przekraczane między i startDateendDate. Odpowiada SQL Server .DATEDIFF(nanosecond, @startDate, @endDate)

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

Zlicza granice nanosekund przekraczane między i startTimeendTime. Odpowiada 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)

Parametry

_
DbFunctions

Wystąpienie elementu DbFunctions.

startTime
Nullable<TimeOnly>

Czas rozpoczęcia obliczania.

endTime
Nullable<TimeOnly>

Czas zakończenia obliczenia.

Zwraca

Liczba granic nanosekund przekraczanych między czasami.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Funkcje bazy danych iUzyskiwanie dostępu do SQL Server i Azure SQL baz danych za pomocą programu EF Core.

Dotyczy

DateDiffNanosecond(DbFunctions, TimeSpan, TimeSpan)

Zlicza granice nanosekund przekraczane między i startTimeSpanendTimeSpan. Odpowiada 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

Parametry

_
DbFunctions

Wystąpienie elementu DbFunctions.

startTimeSpan
TimeSpan

Przedział czasu uruchamiania dla obliczenia.

endTimeSpan
TimeSpan

Przedział czasu zakończenia dla obliczenia.

Zwraca

Liczba granic nanosekund przekraczanych między datami.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Funkcje bazy danych iUzyskiwanie dostępu do SQL Server i Azure SQL baz danych za pomocą programu EF Core.

Dotyczy

DateDiffNanosecond(DbFunctions, TimeOnly, TimeOnly)

Zlicza granice nanosekund przekraczane między i startTimeendTime. Odpowiada 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

Parametry

_
DbFunctions

Wystąpienie elementu DbFunctions.

startTime
TimeOnly

Czas rozpoczęcia obliczania.

endTime
TimeOnly

Czas zakończenia obliczenia.

Zwraca

Liczba granic nanosekund przekraczanych między czasami.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Funkcje bazy danych iUzyskiwanie dostępu do SQL Server i Azure SQL baz danych za pomocą programu EF Core.

Dotyczy

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

Zlicza granice nanosekund przekraczane między i startTimeSpanendTimeSpan. Odpowiada 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)

Parametry

_
DbFunctions

Wystąpienie elementu DbFunctions.

startTimeSpan
Nullable<TimeSpan>

Przedział czasu uruchamiania dla obliczenia.

endTimeSpan
Nullable<TimeSpan>

Przedział czasu zakończenia dla obliczenia.

Zwraca

Liczba granic nanosekund przekraczanych między datami.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Funkcje bazy danych iUzyskiwanie dostępu do SQL Server i Azure SQL baz danych za pomocą programu EF Core.

Dotyczy

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

Zlicza granice nanosekund przekraczane między i startDateendDate. Odpowiada 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)

Parametry

_
DbFunctions

Wystąpienie elementu DbFunctions.

startDate
Nullable<DateTimeOffset>

Data początkowa obliczenia.

endDate
Nullable<DateTimeOffset>

Data zakończenia obliczenia.

Zwraca

Liczba granic nanosekund przekraczanych między datami.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Funkcje bazy danych iUzyskiwanie dostępu do SQL Server i Azure SQL baz danych za pomocą programu EF Core.

Dotyczy

DateDiffNanosecond(DbFunctions, DateTimeOffset, DateTimeOffset)

Zlicza granice nanosekund przekraczane między i startDateendDate. Odpowiada 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

Parametry

_
DbFunctions

Wystąpienie elementu DbFunctions.

startDate
DateTimeOffset

Data początkowa obliczenia.

endDate
DateTimeOffset

Data zakończenia obliczenia.

Zwraca

Liczba granic nanosekund przekraczanych między datami.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Funkcje bazy danych iUzyskiwanie dostępu do SQL Server i Azure SQL baz danych za pomocą programu EF Core.

Dotyczy

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

Zlicza granice nanosekund przekraczane między i startDateendDate. Odpowiada 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)

Parametry

_
DbFunctions

Wystąpienie elementu DbFunctions.

startDate
Nullable<DateOnly>

Data początkowa obliczenia.

endDate
Nullable<DateOnly>

Data zakończenia obliczenia.

Zwraca

Liczba granic nanosekund przekraczanych między datami.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Funkcje bazy danych iUzyskiwanie dostępu do SQL Server i Azure SQL baz danych za pomocą programu EF Core.

Dotyczy

DateDiffNanosecond(DbFunctions, DateOnly, DateOnly)

Zlicza granice nanosekund przekraczane między i startDateendDate. Odpowiada 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

Parametry

_
DbFunctions

Wystąpienie elementu DbFunctions.

startDate
DateOnly

Data początkowa obliczenia.

endDate
DateOnly

Data zakończenia obliczenia.

Zwraca

Liczba granic nanosekund przekraczanych między datami.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Funkcje bazy danych iUzyskiwanie dostępu do SQL Server i Azure SQL baz danych za pomocą programu EF Core.

Dotyczy

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

Zlicza granice nanosekund przekraczane między wartościami startDate i endDate. Odpowiada SQL Server .DATEDIFF(nanosecond, @startDate, @endDate)

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)

Parametry

_
DbFunctions

Wystąpienie elementu DbFunctions.

startDate
Nullable<DateTime>

Data początkowa obliczenia.

endDate
Nullable<DateTime>

Data zakończenia obliczenia.

Zwraca

Liczba granic nanosekund przekraczanych między datami.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Funkcje bazy danych iUzyskiwanie dostępu do SQL Server i Azure SQL baz danych za pomocą programu EF Core.

Dotyczy

DateDiffNanosecond(DbFunctions, DateTime, DateTime)

Zlicza granice nanosekund przekraczane między wartościami startDate i endDate. Odpowiada SQL Server .DATEDIFF(nanosecond, @startDate, @endDate)

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

Parametry

_
DbFunctions

Wystąpienie elementu DbFunctions.

startDate
DateTime

Data rozpoczęcia obliczania.

endDate
DateTime

Data zakończenia obliczenia.

Zwraca

Liczba granic nanosekund przekraczanych między datami.

Uwagi

Aby uzyskać więcej informacji, zobacz Funkcje bazy danych oraz Uzyskiwanie dostępu do SQL Server i Azure SQL baz danych za pomocą platformy EF Core.

Dotyczy