EntityFunctions.Truncate Método
Definição
Invoca a função Truncate canônica.Invokes the canonical Truncate function. Para obter informações sobre a função Truncate canônica, consulte Funções canônicas matemáticas.For information about the canonical Truncate function, see Math Canonical Functions.
Sobrecargas
| Truncate(Nullable<Decimal>, Nullable<Int32>) |
Invoca a função |
| Truncate(Nullable<Double>, Nullable<Int32>) |
Invoca a função |
Comentários
Você não pode chamar essa função diretamente.You cannot call this function directly. Essa função só pode aparecer dentro de uma consulta LINQ to Entities.This function can only appear within a LINQ to Entities query.
Essa função é convertida em uma função correspondente no banco de dados.This function is translated to a corresponding function in the database.
Truncate(Nullable<Decimal>, Nullable<Int32>)
Invoca a função Truncate canônica.Invokes the canonical Truncate function. Para obter informações sobre a função Truncate canônica, consulte Funções canônicas matemáticas.For information about the canonical Truncate function, see Math Canonical Functions.
public:
static Nullable<System::Decimal> Truncate(Nullable<System::Decimal> value, Nullable<int> digits);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "Truncate")]
public static decimal? Truncate (decimal? value, int? digits);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "Truncate")>]
static member Truncate : Nullable<decimal> * Nullable<int> -> Nullable<decimal>
Public Shared Function Truncate (value As Nullable(Of Decimal), digits As Nullable(Of Integer)) As Nullable(Of Decimal)
Parâmetros
Retornos
value truncado para o tamanho ou precisão especificados por digits.value truncated to the length or precision specified by digits.
- Atributos
Comentários
Você não pode chamar essa função diretamente.You cannot call this function directly. Essa função só pode aparecer dentro de uma consulta LINQ to Entities.This function can only appear within a LINQ to Entities query.
Essa função é convertida em uma função correspondente no banco de dados.This function is translated to a corresponding function in the database.
Aplica-se a
Truncate(Nullable<Double>, Nullable<Int32>)
Invoca a função Truncate canônica.Invokes the canonical Truncate function. Para obter informações sobre a função Truncate canônica, consulte Funções canônicas matemáticas.For information about the canonical Truncate function, see Math Canonical Functions.
public:
static Nullable<double> Truncate(Nullable<double> value, Nullable<int> digits);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "Truncate")]
public static double? Truncate (double? value, int? digits);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "Truncate")>]
static member Truncate : Nullable<double> * Nullable<int> -> Nullable<double>
Public Shared Function Truncate (value As Nullable(Of Double), digits As Nullable(Of Integer)) As Nullable(Of Double)
Parâmetros
Retornos
value truncado para o tamanho ou precisão especificados por digits.value truncated to the length or precision specified by digits.
- Atributos
Comentários
Você não pode chamar essa função diretamente.You cannot call this function directly. Essa função só pode aparecer dentro de uma consulta LINQ to Entities.This function can only appear within a LINQ to Entities query.
Essa função é convertida em uma função correspondente no banco de dados.This function is translated to a corresponding function in the database.