SqlServerDbFunctionsExtensions.DateDiffMillisecond 方法      
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| DateDiffMillisecond(DbFunctions, TimeSpan, TimeSpan) | 
						 计算 在 和   | 
        	
| DateDiffMillisecond(DbFunctions, TimeOnly, TimeOnly) | 
						 计算 在 和   | 
        	
| DateDiffMillisecond(DbFunctions, Nullable<TimeSpan>, Nullable<TimeSpan>) | 
						 计算 在 和   | 
        	
| DateDiffMillisecond(DbFunctions, Nullable<TimeOnly>, Nullable<TimeOnly>) | 
						 计算 在 和   | 
        	
| DateDiffMillisecond(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) | 
						 计算 在 和   | 
        	
| DateDiffMillisecond(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>) | 
						 计算 在 和   | 
        	
| DateDiffMillisecond(DbFunctions, DateTimeOffset, DateTimeOffset) | 
						 计算 在 和   | 
        	
| DateDiffMillisecond(DbFunctions, DateTime, DateTime) | 
						 计算 在 和   | 
        	
| DateDiffMillisecond(DbFunctions, DateOnly, DateOnly) | 
						 计算 在 和   | 
        	
| DateDiffMillisecond(DbFunctions, Nullable<DateTime>, Nullable<DateTime>) | 
						 计算 在 和   | 
        	
DateDiffMillisecond(DbFunctions, TimeSpan, TimeSpan)
计算 在 和 endTimeSpan之间startTimeSpan跨越的毫秒边界数。 对应于 SQL Server 的 DATEDIFF(millisecond, @startTimeSpan, @endTimeSpan)。
public static int DateDiffMillisecond(this Microsoft.EntityFrameworkCore.DbFunctions _, TimeSpan startTimeSpan, TimeSpan endTimeSpan);
	static member DateDiffMillisecond : Microsoft.EntityFrameworkCore.DbFunctions * TimeSpan * TimeSpan -> int
	<Extension()>
Public Function DateDiffMillisecond (_ As DbFunctions, startTimeSpan As TimeSpan, endTimeSpan As TimeSpan) As Integer
	参数
DbFunctions 实例。
- startTimeSpan
 - TimeSpan
 
计算的起始时间跨度。
- endTimeSpan
 - TimeSpan
 
计算的结束时间跨度。
返回
时间跨度之间跨越的毫秒边界数。
注解
有关详细信息和示例,请参阅数据库函数和使用 EF Core 访问SQL Server和Azure SQL数据库。
适用于
DateDiffMillisecond(DbFunctions, TimeOnly, TimeOnly)
计算 在 和 endTime之间startTime跨越的毫秒边界数。 对应于 SQL Server 的 DATEDIFF(millisecond, @startTime, @endTime)。
public static int DateDiffMillisecond(this Microsoft.EntityFrameworkCore.DbFunctions _, TimeOnly startTime, TimeOnly endTime);
	static member DateDiffMillisecond : Microsoft.EntityFrameworkCore.DbFunctions * TimeOnly * TimeOnly -> int
	<Extension()>
Public Function DateDiffMillisecond (_ As DbFunctions, startTime As TimeOnly, endTime As TimeOnly) As Integer
	参数
DbFunctions 实例。
- startTime
 - TimeOnly
 
计算的开始时间。
- endTime
 - TimeOnly
 
计算的结束时间。
返回
时间之间跨越的毫秒边界数。
注解
有关详细信息和示例,请参阅数据库函数和使用 EF Core 访问SQL Server和Azure SQL数据库。
适用于
DateDiffMillisecond(DbFunctions, Nullable<TimeSpan>, Nullable<TimeSpan>)
计算 在 和 endTimeSpan之间startTimeSpan跨越的毫秒边界数。 对应于 SQL Server 的 DATEDIFF(millisecond, @startTimeSpan, @endTimeSpan)。
public static int? DateDiffMillisecond(this Microsoft.EntityFrameworkCore.DbFunctions _, TimeSpan? startTimeSpan, TimeSpan? endTimeSpan);
	static member DateDiffMillisecond : Microsoft.EntityFrameworkCore.DbFunctions * Nullable<TimeSpan> * Nullable<TimeSpan> -> Nullable<int>
	<Extension()>
Public Function DateDiffMillisecond (_ As DbFunctions, startTimeSpan As Nullable(Of TimeSpan), endTimeSpan As Nullable(Of TimeSpan)) As Nullable(Of Integer)
	参数
DbFunctions 实例。
返回
时间跨度之间跨越的毫秒边界数。
注解
有关详细信息和示例,请参阅数据库函数和使用 EF Core 访问SQL Server和Azure SQL数据库。
适用于
DateDiffMillisecond(DbFunctions, Nullable<TimeOnly>, Nullable<TimeOnly>)
计算 在 和 endTime之间startTime跨越的毫秒边界数。 对应于 SQL Server 的 DATEDIFF(millisecond, @startTime, @endTime)。
public static int? DateDiffMillisecond(this Microsoft.EntityFrameworkCore.DbFunctions _, TimeOnly? startTime, TimeOnly? endTime);
	static member DateDiffMillisecond : Microsoft.EntityFrameworkCore.DbFunctions * Nullable<TimeOnly> * Nullable<TimeOnly> -> Nullable<int>
	<Extension()>
Public Function DateDiffMillisecond (_ As DbFunctions, startTime As Nullable(Of TimeOnly), endTime As Nullable(Of TimeOnly)) As Nullable(Of Integer)
	参数
DbFunctions 实例。
返回
时间之间跨越的毫秒边界数。
注解
有关详细信息和示例,请参阅数据库函数和使用 EF Core 访问SQL Server和Azure SQL数据库。
适用于
DateDiffMillisecond(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)
计算 在 和 endDate之间startDate跨越的毫秒边界数。 对应于 SQL Server 的 DATEDIFF(millisecond, @startDate, @endDate)。
public static int? DateDiffMillisecond(this Microsoft.EntityFrameworkCore.DbFunctions _, DateTimeOffset? startDate, DateTimeOffset? endDate);
	static member DateDiffMillisecond : Microsoft.EntityFrameworkCore.DbFunctions * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> -> Nullable<int>
	<Extension()>
Public Function DateDiffMillisecond (_ As DbFunctions, startDate As Nullable(Of DateTimeOffset), endDate As Nullable(Of DateTimeOffset)) As Nullable(Of Integer)
	参数
DbFunctions 实例。
- startDate
 - Nullable<DateTimeOffset>
 
计算的开始日期。
- endDate
 - Nullable<DateTimeOffset>
 
计算的结束日期。
返回
日期之间跨越的毫秒边界数。
注解
有关详细信息和示例,请参阅数据库函数和使用 EF Core 访问SQL Server和Azure SQL数据库。
适用于
DateDiffMillisecond(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>)
计算 在 和 endDate之间startDate跨越的毫秒边界数。 对应于 SQL Server 的 DATEDIFF(millisecond, @startDate, @endDate)。
public static int? DateDiffMillisecond(this Microsoft.EntityFrameworkCore.DbFunctions _, DateOnly? startDate, DateOnly? endDate);
	static member DateDiffMillisecond : Microsoft.EntityFrameworkCore.DbFunctions * Nullable<DateOnly> * Nullable<DateOnly> -> Nullable<int>
	<Extension()>
Public Function DateDiffMillisecond (_ As DbFunctions, startDate As Nullable(Of DateOnly), endDate As Nullable(Of DateOnly)) As Nullable(Of Integer)
	参数
DbFunctions 实例。
返回
日期之间跨越的毫秒边界数。
注解
有关详细信息和示例,请参阅数据库函数和使用 EF Core 访问SQL Server和Azure SQL数据库。
适用于
DateDiffMillisecond(DbFunctions, DateTimeOffset, DateTimeOffset)
计算 在 和 endDate之间startDate跨越的毫秒边界数。 对应于 SQL Server 的 DATEDIFF(millisecond, @startDate, @endDate)。
public static int DateDiffMillisecond(this Microsoft.EntityFrameworkCore.DbFunctions _, DateTimeOffset startDate, DateTimeOffset endDate);
	static member DateDiffMillisecond : Microsoft.EntityFrameworkCore.DbFunctions * DateTimeOffset * DateTimeOffset -> int
	<Extension()>
Public Function DateDiffMillisecond (_ As DbFunctions, startDate As DateTimeOffset, endDate As DateTimeOffset) As Integer
	参数
DbFunctions 实例。
- startDate
 - DateTimeOffset
 
计算的开始日期。
- endDate
 - DateTimeOffset
 
计算的结束日期。
返回
日期之间跨越的毫秒边界数。
注解
有关详细信息和示例,请参阅数据库函数和使用 EF Core 访问SQL Server和Azure SQL数据库。
适用于
DateDiffMillisecond(DbFunctions, DateTime, DateTime)
计算 在 和 endDate之间startDate跨越的毫秒边界数。 对应于 SQL Server 的 DATEDIFF(millisecond, @startDate, @endDate)。
public static int DateDiffMillisecond(this Microsoft.EntityFrameworkCore.DbFunctions _, DateTime startDate, DateTime endDate);
	static member DateDiffMillisecond : Microsoft.EntityFrameworkCore.DbFunctions * DateTime * DateTime -> int
	<Extension()>
Public Function DateDiffMillisecond (_ As DbFunctions, startDate As DateTime, endDate As DateTime) As Integer
	参数
DbFunctions 实例。
- startDate
 - DateTime
 
计算的开始日期。
- endDate
 - DateTime
 
计算的结束日期。
返回
日期之间跨越的毫秒边界数。
注解
有关详细信息和示例,请参阅数据库函数和使用 EF Core 访问SQL Server和Azure SQL数据库。
适用于
DateDiffMillisecond(DbFunctions, DateOnly, DateOnly)
计算 和 endDate之间startDate跨越的毫秒边界数。 对应于 SQL Server 的 DATEDIFF(millisecond, @startDate, @endDate)。
public static int DateDiffMillisecond(this Microsoft.EntityFrameworkCore.DbFunctions _, DateOnly startDate, DateOnly endDate);
	static member DateDiffMillisecond : Microsoft.EntityFrameworkCore.DbFunctions * DateOnly * DateOnly -> int
	<Extension()>
Public Function DateDiffMillisecond (_ As DbFunctions, startDate As DateOnly, endDate As DateOnly) As Integer
	参数
DbFunctions 实例。
- startDate
 - DateOnly
 
计算的开始日期。
- endDate
 - DateOnly
 
计算的结束日期。
返回
日期之间跨越的毫秒边界数。
注解
有关详细信息和示例,请参阅数据库函数和使用 EF Core 访问SQL Server和Azure SQL数据库。
适用于
DateDiffMillisecond(DbFunctions, Nullable<DateTime>, Nullable<DateTime>)
计算 和 endDate之间startDate跨越的毫秒边界数。 对应于 SQL Server 的 DATEDIFF(millisecond, @startDate, @endDate)。
public static int? DateDiffMillisecond(this Microsoft.EntityFrameworkCore.DbFunctions _, DateTime? startDate, DateTime? endDate);
	static member DateDiffMillisecond : Microsoft.EntityFrameworkCore.DbFunctions * Nullable<DateTime> * Nullable<DateTime> -> Nullable<int>
	<Extension()>
Public Function DateDiffMillisecond (_ As DbFunctions, startDate As Nullable(Of DateTime), endDate As Nullable(Of DateTime)) As Nullable(Of Integer)
	参数
DbFunctions 实例。
返回
日期之间跨越的毫秒边界数。
注解
有关详细信息和示例,请参阅数据库函数和使用 EF Core 访问SQL Server和Azure SQL数据库。