EntityFunctions.CreateTime(Nullable<Int32>, Nullable<Int32>, Nullable<Double>) 方法

定义

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

public:
 static Nullable<TimeSpan> CreateTime(Nullable<int> hour, Nullable<int> minute, Nullable<double> second);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "CreateTime")]
public static TimeSpan? CreateTime (int? hour, int? minute, double? second);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "CreateTime")>]
static member CreateTime : Nullable<int> * Nullable<int> * Nullable<double> -> Nullable<TimeSpan>
Public Shared Function CreateTime (hour As Nullable(Of Integer), minute As Nullable(Of Integer), second As Nullable(Of Double)) As Nullable(Of TimeSpan)

参数

hour
Nullable<Int32>

新时间跨度的小时部分。The hours part of the new time span.

minute
Nullable<Int32>

新时间跨度的分钟部分。The minutes part of the new time span.

second
Nullable<Double>

新时间跨度的秒部分。The seconds part of the new time span. 请注意,可以使用此参数指定秒的小数部分。Note that you can specify fractions of a second with this parameter.

返回

Nullable<TimeSpan>

新的时间跨度。The new time span.

属性

注解

不能直接调用此函数。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.

适用于