src/Shared/EntityFramework/Core/Objects/EntityFunctions.cs
/// <summary>
/// When used as part of a LINQ to Entities query, this method invokes the canonical Truncate EDM function to
/// truncate the given value to the number of specified digits.
/// </summary>
/// <remarks>
/// You cannot call this function directly. This function can only appear within a LINQ to Entities query.
/// This function is translated to a corresponding function in the database.
/// </remarks>
/// <param name="value"> The value to truncate. </param>
/// <param name="digits"> The number of digits to preserve. </param>
/// <returns> The truncated value. </returns>
When used as part of a LINQ to Entities query, this method invokes the canonical Truncate EDM function to
truncate the given value to the number of specified digits.
When used as part of a LINQ to Entities query this method invokes the canonical Truncate EDM function to truncate the given value to the number of specified digits .
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "digits")]
        [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "value")]
        [DbFunction("Edm", "Truncate")]
        public static double? Truncate(Double? value, int? digits)
        {
            throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
        }
[ SuppressMessage ( " " , " " , MessageId = " " ) ] [ SuppressMessage ( " " , " " , MessageId = " " ) ] [ DbFunction ( " " , " " ) ] public static double ? Truncate ( Double ? value , int ? digits ) { throw new NotSupportedException ( Strings . ELinq_DbFunctionDirectCall ) ; }
When used as part of a LINQ to Entities query, this method invokes the canonical Truncate EDM function to
truncate the given value to the number of specified digits.
When used as part of a LINQ to Entities query this method invokes the canonical Truncate EDM function to truncate the given value to the number of specified digits .
The truncated value.
The truncated value .
value
Double?
The value to truncate.
The value to truncate .
digits
int?
The number of digits to preserve.
The number of digits to preserve .
remarks
You cannot call this function directly. This function can only appear within a LINQ to Entities query.
This function is translated to a corresponding function in the database.
You cannot call this function directly . This function can only appear within a LINQ to Entities query . This function is translated to a corresponding function in the database .