Share via


SqlServerDbFunctionsExtensions.DateDiffWeek メソッド

定義

オーバーロード

DateDiffWeek(DbFunctions, DateTimeOffset, DateTimeOffset)

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

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

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

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

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

DateDiffWeek(DbFunctions, DateTime, DateTime)

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

DateDiffWeek(DbFunctions, DateOnly, DateOnly)

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

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

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

DateDiffWeek(DbFunctions, DateTimeOffset, DateTimeOffset)

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

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

パラメーター

_
DbFunctions

DbFunctions のインスタンスです。

startDate
DateTimeOffset

計算の開始日。

endDate
DateTimeOffset

計算の終了日。

戻り値

日付の間に交差する週の境界の数。

注釈

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

適用対象

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

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

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

パラメーター

_
DbFunctions

DbFunctions のインスタンスです。

startDate
Nullable<DateTimeOffset>

計算の開始日。

endDate
Nullable<DateTimeOffset>

計算の終了日。

戻り値

日付の間に交差する週の境界の数。

注釈

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

適用対象

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

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

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

パラメーター

_
DbFunctions

DbFunctions のインスタンスです。

startDate
Nullable<DateTime>

計算の開始日。

endDate
Nullable<DateTime>

計算の終了日。

戻り値

日付の間に交差する週の境界の数。

注釈

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

適用対象

DateDiffWeek(DbFunctions, DateTime, DateTime)

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

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

パラメーター

_
DbFunctions

DbFunctions のインスタンスです。

startDate
DateTime

計算の開始日。

endDate
DateTime

計算の終了日。

戻り値

日付の間に交差する週の境界の数。

注釈

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

適用対象

DateDiffWeek(DbFunctions, DateOnly, DateOnly)

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

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

パラメーター

_
DbFunctions

DbFunctions のインスタンスです。

startDate
DateOnly

計算の開始日。

endDate
DateOnly

計算の終了日。

戻り値

日付の間に交差する週の境界の数。

注釈

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

適用対象

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

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

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

パラメーター

_
DbFunctions

DbFunctions のインスタンスです。

startDate
Nullable<DateOnly>

計算の開始日。

endDate
Nullable<DateOnly>

計算の終了日。

戻り値

日付の間に交差する週の境界の数。

注釈

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

適用対象