EdmFunctions.Truncate(DbExpression, DbExpression) メソッド

定義

指定された引数で正規の 'Truncate' 関数を呼び出す DbFunctionExpression を作成します。指定する各引数の結果型は、single、double、decimal のいずれかと整数である必要があります。 式の結果の型は、値の結果の型と同じです。

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression Truncate (this System.Data.Entity.Core.Common.CommandTrees.DbExpression value, System.Data.Entity.Core.Common.CommandTrees.DbExpression digits);
static member Truncate : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Truncate (value As DbExpression, digits As DbExpression) As DbFunctionExpression

パラメーター

value
DbExpression

切り捨ての対象の数値を指定する式。

digits
DbExpression

切り捨てに使用する有効桁数を指定する式。

戻り値

指定した引数を、桁数で指定された有効桁数で最も近い整数値に切り捨てる新しい DbFunctionExpression。

適用対象