Share via


SqlServerDbFunctionsExtensions.DateDiffSecond メソッド

定義

オーバーロード

DateDiffSecond(DbFunctions, DateOnly, DateOnly)

endDateの間で交差する 2 番目の境界の数をstartDateカウントします。 SQL Server の DATEDIFF(second, @startDate, @endDate)に対応します。

DateDiffSecond(DbFunctions, DateTime, DateTime)

endDateの間で交差する 2 番目の境界の数をstartDateカウントします。 SQL Server の DATEDIFF(second, @startDate, @endDate)に対応します。

DateDiffSecond(DbFunctions, DateTimeOffset, DateTimeOffset)

endDateの間で交差する 2 番目の境界の数をstartDateカウントします。 SQL Server の DATEDIFF(second, @startDate, @endDate)に対応します。

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

endDateの間で交差する 2 番目の境界の数をstartDateカウントします。 SQL Server の DATEDIFF(second, @startDate, @endDate)に対応します。

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

endDateの間で交差する 2 番目の境界の数をstartDateカウントします。 SQL Server の DATEDIFF(second, @startDate, @endDate)に対応します。

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

endDateの間で交差する 2 番目の境界の数をstartDateカウントします。 SQL Server の DATEDIFF(second, @startDate, @endDate)に対応します。

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

endTimeの間で交差する 2 番目の境界の数をstartTimeカウントします。 SQL Server の DATEDIFF(second, @startTime, @endTime)に対応します。

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

endTimeSpanの間で交差する 2 番目の境界の数をstartTimeSpanカウントします。 SQL Server の DATEDIFF(second, @startTimeSpan, @endTimeSpan)に対応します。

DateDiffSecond(DbFunctions, TimeOnly, TimeOnly)

endTimeの間で交差する 2 番目の境界の数をstartTimeカウントします。 SQL Server の DATEDIFF(second, @startTime, @endTime)に対応します。

DateDiffSecond(DbFunctions, TimeSpan, TimeSpan)

endTimeSpanの間で交差する 2 番目の境界の数をstartTimeSpanカウントします。 SQL Server の DATEDIFF(second, @startTimeSpan, @endTimeSpan)に対応します。

DateDiffSecond(DbFunctions, DateOnly, DateOnly)

endDateの間で交差する 2 番目の境界の数をstartDateカウントします。 SQL Server の DATEDIFF(second, @startDate, @endDate)に対応します。

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

パラメーター

_
DbFunctions

DbFunctions のインスタンスです。

startDate
DateOnly

計算の開始日。

endDate
DateOnly

計算の終了日。

戻り値

日付の間に交差する 2 番目の境界の数。

注釈

詳細と例については、「データベース関数」および「EF Core を使用したデータベースのSQL ServerとAzure SQLへのアクセス」を参照してください。

適用対象

DateDiffSecond(DbFunctions, DateTime, DateTime)

endDateの間で交差する 2 番目の境界の数をstartDateカウントします。 SQL Server の DATEDIFF(second, @startDate, @endDate)に対応します。

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

パラメーター

_
DbFunctions

DbFunctions のインスタンスです。

startDate
DateTime

計算の開始日。

endDate
DateTime

計算の終了日。

戻り値

日付の間に交差する 2 番目の境界の数。

注釈

詳細と例については、「データベース関数」および「EF Core を使用したデータベースのSQL ServerとAzure SQLへのアクセス」を参照してください。

適用対象

DateDiffSecond(DbFunctions, DateTimeOffset, DateTimeOffset)

endDateの間で交差する 2 番目の境界の数をstartDateカウントします。 SQL Server の DATEDIFF(second, @startDate, @endDate)に対応します。

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

パラメーター

_
DbFunctions

DbFunctions のインスタンスです。

startDate
DateTimeOffset

計算の開始日。

endDate
DateTimeOffset

計算の終了日。

戻り値

日付の間に交差する 2 番目の境界の数。

注釈

詳細と例については、「データベース関数」および「EF Core を使用したデータベースのSQL ServerとAzure SQLへのアクセス」を参照してください。

適用対象

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

endDateの間で交差する 2 番目の境界の数をstartDateカウントします。 SQL Server の DATEDIFF(second, @startDate, @endDate)に対応します。

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

パラメーター

_
DbFunctions

DbFunctions のインスタンスです。

startDate
Nullable<DateOnly>

計算の開始日。

endDate
Nullable<DateOnly>

計算の終了日。

戻り値

日付の間に交差する 2 番目の境界の数。

注釈

詳細と例については、「データベース関数」および「EF Core を使用したデータベースのSQL ServerとAzure SQLへのアクセス」を参照してください。

適用対象

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

endDateの間で交差する 2 番目の境界の数をstartDateカウントします。 SQL Server の DATEDIFF(second, @startDate, @endDate)に対応します。

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

パラメーター

_
DbFunctions

DbFunctions のインスタンスです。

startDate
Nullable<DateTime>

計算の開始日。

endDate
Nullable<DateTime>

計算の終了日。

戻り値

日付の間に交差する 2 番目の境界の数。

注釈

詳細と例については、「データベース関数」および「EF Core を使用したデータベースのSQL ServerとAzure SQLへのアクセス」を参照してください。

適用対象

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

endDateの間で交差する 2 番目の境界の数をstartDateカウントします。 SQL Server の DATEDIFF(second, @startDate, @endDate)に対応します。

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

パラメーター

_
DbFunctions

DbFunctions のインスタンスです。

startDate
Nullable<DateTimeOffset>

計算の開始日。

endDate
Nullable<DateTimeOffset>

計算の終了日。

戻り値

日付の間に交差する 2 番目の境界の数。

注釈

詳細と例については、「データベース関数」および「EF Core を使用したデータベースのSQL ServerとAzure SQLへのアクセス」を参照してください。

適用対象

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

endTimeの間で交差する 2 番目の境界の数をstartTimeカウントします。 SQL Server の DATEDIFF(second, @startTime, @endTime)に対応します。

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

パラメーター

_
DbFunctions

DbFunctions のインスタンスです。

startTime
Nullable<TimeOnly>

計算の開始時刻。

endTime
Nullable<TimeOnly>

計算の終了時刻。

戻り値

時間の間に交差した 2 番目の境界の数。

注釈

詳細と例については、「データベース関数」および「EF Core を使用したデータベースのSQL ServerとAzure SQLへのアクセス」を参照してください。

適用対象

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

endTimeSpanの間で交差する 2 番目の境界の数をstartTimeSpanカウントします。 SQL Server の DATEDIFF(second, @startTimeSpan, @endTimeSpan)に対応します。

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

パラメーター

_
DbFunctions

DbFunctions のインスタンスです。

startTimeSpan
Nullable<TimeSpan>

計算の開始期間。

endTimeSpan
Nullable<TimeSpan>

計算の終了期間。

戻り値

タイムスパン間で交差した 2 番目の境界の数。

注釈

詳細と例については、「データベース関数」および「EF Core を使用したデータベースのSQL ServerとAzure SQLへのアクセス」を参照してください。

適用対象

DateDiffSecond(DbFunctions, TimeOnly, TimeOnly)

endTimeの間で交差した 2 番目の境界の数をstartTimeカウントします。 SQL Server の DATEDIFF(second, @startTime, @endTime)に対応します。

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

パラメーター

_
DbFunctions

DbFunctions のインスタンスです。

startTime
TimeOnly

計算の開始時刻。

endTime
TimeOnly

計算の終了時刻。

戻り値

時間の間に交差する 2 番目の境界の数。

注釈

詳細と例については、「データベース関数」および「EF Core を使用したデータベースのSQL ServerとAzure SQLへのアクセス」を参照してください。

適用対象

DateDiffSecond(DbFunctions, TimeSpan, TimeSpan)

endTimeSpanの間で交差した 2 番目の境界の数をstartTimeSpanカウントします。 SQL Server の DATEDIFF(second, @startTimeSpan, @endTimeSpan)に対応します。

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

パラメーター

_
DbFunctions

DbFunctions のインスタンスです。

startTimeSpan
TimeSpan

計算の開始期間。

endTimeSpan
TimeSpan

計算の終了期間。

戻り値

タイムスパン間で交差する 2 番目の境界の数。

注釈

詳細と例については、「データベース関数」および「EF Core を使用したデータベースのSQL ServerとAzure SQLへのアクセス」を参照してください。

適用対象