EdmFunctions.Truncate(DbExpression, DbExpression) Metoda

Definice

Vytvoří DbFunctionExpression , která vyvolá kanonickou funkci Truncate se zadanými argumenty, které musí mít jeden, dvojitý nebo desetinný a celočíselné typy výsledků. Typ výsledku výrazu je stejný jako typ výsledku value.

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

Parametry

value
DbExpression

Výraz, který určuje číselnou hodnotu, která se má zkrátit.

digits
DbExpression

Výraz, který určuje počet číslic přesnosti, které se mají použít při zkrácení.

Návraty

Nový DbFunctionExpression, který zkrátí zadaný argument na nejbližší celočíselnou hodnotu s přesností, jak je určeno digits.

Výjimky

value nebo digits je null.

value nebo digits je neplatný.

Platí pro