Condividi tramite


EdmFunctions.Truncate(DbExpression, DbExpression) Metodo

Definizione

Crea un oggetto DbFunctionExpression che richiama la funzione "Truncate" canonica con gli argomenti specificati, che devono presentare tipi di risultato Single, Double o Decimal e Integer. Il tipo di risultato dell'espressione è lo stesso del tipo di risultato di valore.

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

Parametri

value
DbExpression

Espressione che specifica il valore numerico da troncare.

digits
DbExpression

Espressione che specifica il numero di cifre di precisione da utilizzare per il troncamento.

Restituisce

Nuova classe DbFunctionExpression che tronca l'argomento specificato al valore Integer più vicino, con la precisione specificata da digits.

Si applica a