DbFunctions.DiffNanoseconds 方法

定义

重载

DiffNanoseconds(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

当用作 LINQ to Entities 查询的一部分时,此方法调用规范 DiffNanoseconds EDM 函数来计算两个日期/时间之间的纳秒数。

DiffNanoseconds(Nullable<TimeSpan>, Nullable<TimeSpan>)

当用作 LINQ to Entities 查询的一部分时,此方法调用规范 DiffNanoseconds EDM 函数来计算两个时间跨度之间的纳秒数。

DiffNanoseconds(Nullable<DateTime>, Nullable<DateTime>)

当用作 LINQ to Entities 查询的一部分时,此方法调用规范 DiffNanoseconds EDM 函数来计算两个日期/时间之间的纳秒数。

DiffNanoseconds(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

当用作 LINQ to Entities 查询的一部分时,此方法调用规范 DiffNanoseconds EDM 函数来计算两个日期/时间之间的纳秒数。

[System.Data.Entity.DbFunction("Edm", "DiffNanoseconds")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue2")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue1")]
public static Nullable<int> DiffNanoseconds (Nullable<DateTimeOffset> timeValue1, Nullable<DateTimeOffset> timeValue2);
static member DiffNanoseconds : Nullable<DateTimeOffset> * Nullable<DateTimeOffset> -> Nullable<int>
Public Shared Function DiffNanoseconds (timeValue1 As Nullable(Of DateTimeOffset), timeValue2 As Nullable(Of DateTimeOffset)) As Nullable(Of Integer)

参数

timeValue1
Nullable<DateTimeOffset>

第一个日期/时间。

timeValue2
Nullable<DateTimeOffset>

第二个日期/时间。

返回

第一个和第二个日期/时间之间的纳秒数。

属性

注解

不能直接调用此函数。 此函数只能出现在 LINQ to Entities 查询中。 此函数将转换为数据库中的相应函数。

适用于

DiffNanoseconds(Nullable<TimeSpan>, Nullable<TimeSpan>)

当用作 LINQ to Entities 查询的一部分时,此方法调用规范 DiffNanoseconds EDM 函数来计算两个时间跨度之间的纳秒数。

[System.Data.Entity.DbFunction("Edm", "DiffNanoseconds")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue2")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue1")]
public static Nullable<int> DiffNanoseconds (Nullable<TimeSpan> timeValue1, Nullable<TimeSpan> timeValue2);
static member DiffNanoseconds : Nullable<TimeSpan> * Nullable<TimeSpan> -> Nullable<int>
Public Shared Function DiffNanoseconds (timeValue1 As Nullable(Of TimeSpan), timeValue2 As Nullable(Of TimeSpan)) As Nullable(Of Integer)

参数

timeValue1
Nullable<TimeSpan>

第一个时间跨度。

timeValue2
Nullable<TimeSpan>

第二个时间跨度。

返回

第一个和第二个时间跨度之间的纳秒数。

属性

注解

不能直接调用此函数。 此函数只能出现在 LINQ to Entities 查询中。 此函数将转换为数据库中的相应函数。

适用于

DiffNanoseconds(Nullable<DateTime>, Nullable<DateTime>)

当用作 LINQ to Entities 查询的一部分时,此方法调用规范 DiffNanoseconds EDM 函数来计算两个日期/时间之间的纳秒数。

[System.Data.Entity.DbFunction("Edm", "DiffNanoseconds")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue1")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue2")]
public static Nullable<int> DiffNanoseconds (Nullable<DateTime> timeValue1, Nullable<DateTime> timeValue2);
static member DiffNanoseconds : Nullable<DateTime> * Nullable<DateTime> -> Nullable<int>
Public Shared Function DiffNanoseconds (timeValue1 As Nullable(Of DateTime), timeValue2 As Nullable(Of DateTime)) As Nullable(Of Integer)

参数

timeValue1
Nullable<DateTime>

第一个日期/时间。

timeValue2
Nullable<DateTime>

第二个日期/时间。

返回

第一个和第二个日期/时间之间的纳秒数。

属性

注解

不能直接调用此函数。 此函数只能出现在 LINQ to Entities 查询中。 此函数将转换为数据库中的相应函数。

适用于