EntityFunctions.CreateDateTime 方法

定義

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

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

參數

year
Nullable<Int32>

新日期的年份部分。

month
Nullable<Int32>

新日期的月份部分。

day
Nullable<Int32>

新日期的那一天。

hour
Nullable<Int32>

新約會的那個小時部分。

minute
Nullable<Int32>

新日期的會議記錄部分。

second
Nullable<Double>

新約會的秒數部分。 請注意,你可以用這個參數來指定秒的分數。

傳回

新日期。

屬性

備註

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

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

適用於