EntityFunctions.CreateTime 方法

定義

啟動典範 CreateTime 功能。 關於典範 CreateTime 函數的資訊,請參見 典範函數的日期與時間

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>

工時是新時間範圍的一部分。

minute
Nullable<Int32>

新時間跨度的分鐘部分。

second
Nullable<Double>

新時間跨度中的秒數部分。 請注意,你可以用這個參數來指定秒的分數。

傳回

新的時間跨度。

屬性

備註

你不能直接呼叫這個函式。 此函式只能出現在 LINQ 對 Entities 查詢中。

這個函式會被轉換成資料庫中的對應函式。

適用於