Language

EdmFunctions.TruncateTime(DbExpression) メソッド

定義

指定した引数を使用して正規の 'TruncateTime' 関数を呼び出す DbFunctionExpression を作成します。この関数の結果型は DateTime または DateTimeOffset である必要があります。 式の結果の型は、dateValue の結果の型と同じです。

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression TruncateTime(this System.Data.Entity.Core.Common.CommandTrees.DbExpression dateValue);
static member TruncateTime : System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function TruncateTime (dateValue As DbExpression) As DbFunctionExpression

パラメーター

dateValue
DbExpression

時間部分を切り捨てる値を指定する式。

戻り値

時刻が 0 に設定された dateValue の値を返す新しい DbFunctionExpression。

適用対象