次の方法で共有


EdmFunctions.CreateDateTime メソッド

定義

指定された引数で正規の 'CreateDateTime' 関数を呼び出す DbFunctionExpression を作成します。 second には Edm.Double の結果の型が必要ですが、他のすべての引数の結果の型は Edm.Int32 である必要があります。 式の結果型は Edm.DateTime です。

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression CreateDateTime (System.Data.Entity.Core.Common.CommandTrees.DbExpression year, System.Data.Entity.Core.Common.CommandTrees.DbExpression month, System.Data.Entity.Core.Common.CommandTrees.DbExpression day, 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 CreateDateTime : 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.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
Public Function CreateDateTime (year As DbExpression, month As DbExpression, day As DbExpression, hour As DbExpression, minute As DbExpression, second As DbExpression) As DbFunctionExpression

パラメーター

year
DbExpression

新しい DateTime インスタンスの年値を表す式。

month
DbExpression

新しい DateTime インスタンスの月値を表す式。

day
DbExpression

新しい DateTime インスタンスの日値を表す式。

hour
DbExpression

新しい DateTime インスタンスの時値を表す式。

minute
DbExpression

新しい DateTime インスタンスの分値を表す式。

second
DbExpression

新しい DateTime インスタンスの秒値を表す式。

戻り値

指定された値に基づいて新しい DateTime を返す新しい DbFunctionExpression。

適用対象