EdmFunctions.Round メソッド

定義

正規の 'Round' 関数を呼び出す DbFunctionExpression を作成します。

オーバーロード

名前 説明
Round(DbExpression)

指定した引数を使用して正規の 'Round' 関数を呼び出す DbFunctionExpression を作成します。この関数には、それぞれ単一、二重、または 10 進の結果型が必要です。 式の結果の型は、 valueの結果の型と同じです。

Round(DbExpression, DbExpression)

指定した引数を使用して正規の 'Round' 関数を呼び出す DbFunctionExpression を作成します。この関数には、単一、二重、または 10 進数、整数の結果型が必要です。 式の結果の型は、 valueの結果の型と同じです。

Round(DbExpression)

指定した引数を使用して正規の 'Round' 関数を呼び出す DbFunctionExpression を作成します。この関数には、それぞれ単一、二重、または 10 進の結果型が必要です。 式の結果の型は、 valueの結果の型と同じです。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ Round(System::Data::Common::CommandTrees::DbExpression ^ value);
public static System.Data.Common.CommandTrees.DbFunctionExpression Round(this System.Data.Common.CommandTrees.DbExpression value);
static member Round : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Round (value As DbExpression) As DbFunctionExpression

パラメーター

value
DbExpression

丸める数値を指定する式。

返品

指定した引数を最も近い整数値に丸める新しい DbFunctionExpression。

例外

valuenullです。

value が無効です。

適用対象

Round(DbExpression, DbExpression)

指定した引数を使用して正規の 'Round' 関数を呼び出す DbFunctionExpression を作成します。この関数には、単一、二重、または 10 進数、整数の結果型が必要です。 式の結果の型は、 valueの結果の型と同じです。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ Round(System::Data::Common::CommandTrees::DbExpression ^ value, System::Data::Common::CommandTrees::DbExpression ^ digits);
public static System.Data.Common.CommandTrees.DbFunctionExpression Round(this System.Data.Common.CommandTrees.DbExpression value, System.Data.Common.CommandTrees.DbExpression digits);
static member Round : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Round (value As DbExpression, digits As DbExpression) As DbFunctionExpression

パラメーター

value
DbExpression

丸める数値を指定する式。

digits
DbExpression

丸めるときに使用する有効桁数を指定する式。

返品

指定した引数を、 digitsで指定された有効桁数で、最も近い整数値に丸める新しい DbFunctionExpression。

例外

value または digitsnull

value または digits が無効です。

適用対象