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 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.

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.

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

value
Nullable<Decimal>

O número a ser truncado.The number to truncate.

digits
Nullable<Int32>

O tamanho ou precisão de truncamento.The length or precision to truncate to.

Retornos

Nullable<Decimal>

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

value
Nullable<Double>

O número a ser truncado.The number to truncate.

digits
Nullable<Int32>

O tamanho ou precisão de truncamento.The length or precision to truncate to.

Retornos

Nullable<Double>

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