共用方式為


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

定義

建立會使用指定的引數叫用標準 'CreateTime' 函式的 DbFunctionExpression。 second 必須有 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。

適用於