EntityFunctions.DiffMicroseconds 方法

定义

调用 DiffMicroseconds 规范函数。 有关 DiffMicroseconds 规范函数的信息,请参阅日期和时间规范函数

重载

DiffMicroseconds(Nullable<TimeSpan>, Nullable<TimeSpan>)

调用 DiffMicroseconds 规范函数。 有关 DiffMicroseconds 规范函数的信息,请参阅日期和时间规范函数

DiffMicroseconds(Nullable<DateTime>, Nullable<DateTime>)

调用 DiffMicroseconds 规范函数。 有关 DiffMicroseconds 规范函数的信息,请参阅日期和时间规范函数

DiffMicroseconds(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

调用 DiffMicroseconds 规范函数。 有关 DiffMicroseconds 规范函数的信息,请参阅日期和时间规范函数

注解

不能直接调用此函数。 此函数只能出现在 LINQ to Entities 查询中。

此函数将转换为数据库中的相应函数。

DiffMicroseconds(Nullable<TimeSpan>, Nullable<TimeSpan>)

调用 DiffMicroseconds 规范函数。 有关 DiffMicroseconds 规范函数的信息,请参阅日期和时间规范函数

public:
 static Nullable<int> DiffMicroseconds(Nullable<TimeSpan> timeValue1, Nullable<TimeSpan> timeValue2);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "DiffMicroseconds")]
public static int? DiffMicroseconds (TimeSpan? timeValue1, TimeSpan? timeValue2);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "DiffMicroseconds")>]
static member DiffMicroseconds : Nullable<TimeSpan> * Nullable<TimeSpan> -> Nullable<int>
Public Shared Function DiffMicroseconds (timeValue1 As Nullable(Of TimeSpan), timeValue2 As Nullable(Of TimeSpan)) As Nullable(Of Integer)

参数

timeValue1
Nullable<TimeSpan>

一个有效的时间跨度。

timeValue2
Nullable<TimeSpan>

一个有效的时间跨度。

返回

timeValue1timeValue2 之间的微秒数。

属性

注解

不能直接调用此函数。 此函数只能出现在 LINQ to Entities 查询中。

此函数将转换为数据库中的相应函数。

适用于

DiffMicroseconds(Nullable<DateTime>, Nullable<DateTime>)

调用 DiffMicroseconds 规范函数。 有关 DiffMicroseconds 规范函数的信息,请参阅日期和时间规范函数

public:
 static Nullable<int> DiffMicroseconds(Nullable<DateTime> timeValue1, Nullable<DateTime> timeValue2);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "DiffMicroseconds")]
public static int? DiffMicroseconds (DateTime? timeValue1, DateTime? timeValue2);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "DiffMicroseconds")>]
static member DiffMicroseconds : Nullable<DateTime> * Nullable<DateTime> -> Nullable<int>
Public Shared Function DiffMicroseconds (timeValue1 As Nullable(Of DateTime), timeValue2 As Nullable(Of DateTime)) As Nullable(Of Integer)

参数

timeValue1
Nullable<DateTime>

有效日期。

timeValue2
Nullable<DateTime>

有效日期。

返回

timeValue1timeValue2 之间的微秒数。

属性

注解

不能直接调用此函数。 此函数只能出现在 LINQ to Entities 查询中。

此函数将转换为数据库中的相应函数。

适用于

DiffMicroseconds(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

调用 DiffMicroseconds 规范函数。 有关 DiffMicroseconds 规范函数的信息,请参阅日期和时间规范函数

public:
 static Nullable<int> DiffMicroseconds(Nullable<DateTimeOffset> timeValue1, Nullable<DateTimeOffset> timeValue2);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "DiffMicroseconds")]
public static int? DiffMicroseconds (DateTimeOffset? timeValue1, DateTimeOffset? timeValue2);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "DiffMicroseconds")>]
static member DiffMicroseconds : Nullable<DateTimeOffset> * Nullable<DateTimeOffset> -> Nullable<int>
Public Shared Function DiffMicroseconds (timeValue1 As Nullable(Of DateTimeOffset), timeValue2 As Nullable(Of DateTimeOffset)) As Nullable(Of Integer)

参数

timeValue1
Nullable<DateTimeOffset>

一个有效的日期时间偏移。

timeValue2
Nullable<DateTimeOffset>

一个有效的日期时间偏移。

返回

timeValue1timeValue2 之间的微秒数。

属性

注解

不能直接调用此函数。 此函数只能出现在 LINQ to Entities 查询中。

此函数将转换为数据库中的相应函数。

适用于