EdmFunctions.CreateTime(DbExpression, DbExpression, DbExpression) 方法

定義

建立 DbFunctionExpression 一個,並呼叫典型的「CreateTime」函式,並使用指定的參數。 second 必須有結果型態 Edm.Double,而其他參數必須有 Edm.Int32 的結果型別。 該表達式的結果型態為 Edm.Time。

public:
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ CreateTime(System::Data::Common::CommandTrees::DbExpression ^ hour, System::Data::Common::CommandTrees::DbExpression ^ minute, System::Data::Common::CommandTrees::DbExpression ^ second);
public static System.Data.Common.CommandTrees.DbFunctionExpression CreateTime(System.Data.Common.CommandTrees.DbExpression hour, System.Data.Common.CommandTrees.DbExpression minute, System.Data.Common.CommandTrees.DbExpression second);
static member CreateTime : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
Public Function CreateTime (hour As DbExpression, minute As DbExpression, second As DbExpression) As DbFunctionExpression

參數

hour
DbExpression

一個表示式,提供新的 DateTime 實例的小時值。

minute
DbExpression

一個表示式,提供新的 DateTime 實例的分鐘值。

second
DbExpression

一個表達式,提供新的 DateTime 實例的第二個值。

傳回

一個新的 DbFunctionExpression,根據指定的值回傳一個新的 Time。

例外狀況

hour, , minutesecondnull

hourminute, 或 second 無效。

適用於