EntityFunctions.DiffMinutes 方法

定义

调用 DiffMinutes 规范函数。Invokes the canonical DiffMinutes function. 有关 DiffMinutes 规范函数的信息,请参阅日期和时间规范函数For information about the canonical DiffMinutes function, see Date and Time Canonical Functions.

重载

DiffMinutes(Nullable<DateTime>, Nullable<DateTime>)

调用 DiffMinutes 规范函数。Invokes the canonical DiffMinutes function. 有关 DiffMinutes 规范函数的信息,请参阅日期和时间规范函数For information about the canonical DiffMinutes function, see Date and Time Canonical Functions.

DiffMinutes(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

调用 DiffMinutes 规范函数。Invokes the canonical DiffMinutes function. 有关 DiffMinutes 规范函数的信息,请参阅日期和时间规范函数For information about the canonical DiffMinutes function, see Date and Time Canonical Functions.

DiffMinutes(Nullable<TimeSpan>, Nullable<TimeSpan>)

调用 DiffMinutes 规范函数。Invokes the canonical DiffMinutes function. 有关 DiffMinutes 规范函数的信息,请参阅日期和时间规范函数For information about the canonical DiffMinutes function, see Date and Time Canonical Functions.

注解

不能直接调用此函数。You cannot call this function directly. 此函数只能出现在 LINQ to Entities 查询中。This function can only appear within a LINQ to Entities query.

此函数已转换为数据库中的相应函数。This function is translated to a corresponding function in the database.

DiffMinutes(Nullable<DateTime>, Nullable<DateTime>)

调用 DiffMinutes 规范函数。Invokes the canonical DiffMinutes function. 有关 DiffMinutes 规范函数的信息,请参阅日期和时间规范函数For information about the canonical DiffMinutes function, see Date and Time Canonical Functions.

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

参数

timeValue1
Nullable<DateTime>

有效日期。A valid date.

timeValue2
Nullable<DateTime>

有效日期。A valid date.

返回

Nullable<Int32>

timeValue1timeValue2 之间的分钟数。The number of minutes between timeValue1 and timeValue2.

属性

注解

不能直接调用此函数。You cannot call this function directly. 此函数只能出现在 LINQ to Entities 查询中。This function can only appear within a LINQ to Entities query.

此函数已转换为数据库中的相应函数。This function is translated to a corresponding function in the database.

适用于

DiffMinutes(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

调用 DiffMinutes 规范函数。Invokes the canonical DiffMinutes function. 有关 DiffMinutes 规范函数的信息,请参阅日期和时间规范函数For information about the canonical DiffMinutes function, see Date and Time Canonical Functions.

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

参数

timeValue1
Nullable<DateTimeOffset>

一个有效的日期时间偏移。A valid date time offset.

timeValue2
Nullable<DateTimeOffset>

一个有效的日期时间偏移。A valid date time offset.

返回

Nullable<Int32>

timeValue1timeValue2 之间的分钟数。The number of minutes between timeValue1 and timeValue2.

属性

注解

不能直接调用此函数。You cannot call this function directly. 此函数只能出现在 LINQ to Entities 查询中。This function can only appear within a LINQ to Entities query.

此函数已转换为数据库中的相应函数。This function is translated to a corresponding function in the database.

适用于

DiffMinutes(Nullable<TimeSpan>, Nullable<TimeSpan>)

调用 DiffMinutes 规范函数。Invokes the canonical DiffMinutes function. 有关 DiffMinutes 规范函数的信息,请参阅日期和时间规范函数For information about the canonical DiffMinutes function, see Date and Time Canonical Functions.

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

参数

timeValue1
Nullable<TimeSpan>

一个有效的时间跨度。A valid time span.

timeValue2
Nullable<TimeSpan>

一个有效的时间跨度。A valid time span.

返回

Nullable<Int32>

timeValue1timeValue2 之间的分钟数。The number of minutes between timeValue1 and timeValue2.

属性

注解

不能直接调用此函数。You cannot call this function directly. 此函数只能出现在 LINQ to Entities 查询中。This function can only appear within a LINQ to Entities query.

此函数已转换为数据库中的相应函数。This function is translated to a corresponding function in the database.

适用于