語言

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

定義

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

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression CreateTime(System.Data.Entity.Core.Common.CommandTrees.DbExpression hour, System.Data.Entity.Core.Common.CommandTrees.DbExpression minute, System.Data.Entity.Core.Common.CommandTrees.DbExpression second);
static member CreateTime : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.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。

適用於