Bagikan melalui


SqlServerDbFunctionsExtensions.DateDiffMonth Metode

Definisi

Overload

DateDiffMonth(DbFunctions, DateOnly, DateOnly)

Menghitung jumlah batas bulan yang disilangkan antara startDate dan endDate. Sesuai dengan SQL ServerDATEDIFF(month, @startDate, @endDate).

DateDiffMonth(DbFunctions, DateTime, DateTime)

Menghitung jumlah batas bulan yang disilangkan antara startDate dan endDate. Sesuai dengan SQL ServerDATEDIFF(month, @startDate, @endDate).

DateDiffMonth(DbFunctions, DateTimeOffset, DateTimeOffset)

Menghitung jumlah batas bulan yang disilangkan antara startDate dan endDate. Sesuai dengan SQL ServerDATEDIFF(month, @startDate, @endDate).

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

Menghitung jumlah batas bulan yang disilangkan antara startDate dan endDate. Sesuai dengan SQL ServerDATEDIFF(month, @startDate, @endDate).

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

Menghitung jumlah batas bulan yang disilangkan antara startDate dan endDate. Sesuai dengan SQL ServerDATEDIFF(month, @startDate, @endDate).

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

Menghitung jumlah batas bulan yang disilangkan antara startDate dan endDate. Sesuai dengan SQL ServerDATEDIFF(month, @startDate, @endDate).

DateDiffMonth(DbFunctions, DateOnly, DateOnly)

Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs

Menghitung jumlah batas bulan yang disilangkan antara startDate dan endDate. Sesuai dengan SQL ServerDATEDIFF(month, @startDate, @endDate).

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

Parameter

startDate
DateOnly

Tanggal mulai untuk penghitungan.

endDate
DateOnly

Tanggal berakhir untuk perhitungan.

Mengembalikan

Jumlah batas bulan yang disilangkan di antara tanggal.

Keterangan

Lihat Fungsi database, dan Mengakses database SQL Server dan Azure SQL dengan EF Core untuk informasi dan contoh selengkapnya.

Berlaku untuk

DateDiffMonth(DbFunctions, DateTime, DateTime)

Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs

Menghitung jumlah batas bulan yang disilangkan antara startDate dan endDate. Sesuai dengan SQL ServerDATEDIFF(month, @startDate, @endDate).

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

Parameter

startDate
DateTime

Tanggal mulai untuk penghitungan.

endDate
DateTime

Tanggal berakhir untuk perhitungan.

Mengembalikan

Jumlah batas bulan yang disilangkan di antara tanggal.

Keterangan

Lihat Fungsi database, dan Mengakses database SQL Server dan Azure SQL dengan EF Core untuk informasi dan contoh selengkapnya.

Berlaku untuk

DateDiffMonth(DbFunctions, DateTimeOffset, DateTimeOffset)

Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs

Menghitung jumlah batas bulan yang disilangkan antara startDate dan endDate. Sesuai dengan SQL ServerDATEDIFF(month, @startDate, @endDate).

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

Parameter

startDate
DateTimeOffset

Tanggal mulai untuk penghitungan.

endDate
DateTimeOffset

Tanggal berakhir untuk perhitungan.

Mengembalikan

Jumlah batas bulan yang disilangkan di antara tanggal.

Keterangan

Lihat Fungsi database, dan Mengakses database SQL Server dan Azure SQL dengan EF Core untuk informasi dan contoh selengkapnya.

Berlaku untuk

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

Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs

Menghitung jumlah batas bulan yang disilangkan antara startDate dan endDate. Sesuai dengan SQL ServerDATEDIFF(month, @startDate, @endDate).

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

Parameter

startDate
Nullable<DateOnly>

Tanggal mulai untuk penghitungan.

endDate
Nullable<DateOnly>

Tanggal berakhir untuk perhitungan.

Mengembalikan

Jumlah batas bulan yang disilangkan di antara tanggal.

Keterangan

Lihat Fungsi database, dan Mengakses database SQL Server dan Azure SQL dengan EF Core untuk informasi dan contoh selengkapnya.

Berlaku untuk

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

Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs

Menghitung jumlah batas bulan yang disilangkan antara startDate dan endDate. Sesuai dengan SQL ServerDATEDIFF(month, @startDate, @endDate).

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

Parameter

startDate
Nullable<DateTime>

Tanggal mulai untuk penghitungan.

endDate
Nullable<DateTime>

Tanggal berakhir untuk perhitungan.

Mengembalikan

Jumlah batas bulan yang disilangkan di antara tanggal.

Keterangan

Lihat Fungsi database, dan Mengakses database SQL Server dan Azure SQL dengan EF Core untuk informasi dan contoh selengkapnya.

Berlaku untuk

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

Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs
Sumber:
SqlServerDbFunctionsExtensions.cs

Menghitung jumlah batas bulan yang disilangkan antara startDate dan endDate. Sesuai dengan SQL ServerDATEDIFF(month, @startDate, @endDate).

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

Parameter

startDate
Nullable<DateTimeOffset>

Tanggal mulai untuk penghitungan.

endDate
Nullable<DateTimeOffset>

Tanggal berakhir untuk perhitungan.

Mengembalikan

Jumlah batas bulan yang disilangkan di antara tanggal.

Keterangan

Lihat Fungsi database, dan Mengakses database SQL Server dan Azure SQL dengan EF Core untuk informasi dan contoh selengkapnya.

Berlaku untuk