src/Shared/EntityFramework/Core/Objects/EntityFunctions.cs
/// <summary>
/// When used as part of a LINQ to Entities query, this method invokes the canonical TruncateTime EDM function to return
/// the given date with the time portion cleared.
/// </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="dateValue"> The date/time value to use. </param>
/// <returns> The input date with the time portion cleared. </returns>
When used as part of a LINQ to Entities query, this method invokes the canonical TruncateTime EDM function to return
the given date with the time portion cleared.
When used as part of a LINQ to Entities query this method invokes the canonical TruncateTime EDM function to return the given date with the time portion cleared .
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "dateValue")]
        [DbFunction("Edm", "TruncateTime")]
        public static DateTimeOffset? TruncateTime(DateTimeOffset? dateValue)
        {
            throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
        }
[ SuppressMessage ( " " , " " , MessageId = " " ) ] [ DbFunction ( " " , " " ) ] public static DateTimeOffset ? TruncateTime ( DateTimeOffset ? dateValue ) { throw new NotSupportedException ( Strings . ELinq_DbFunctionDirectCall ) ; }
When used as part of a LINQ to Entities query, this method invokes the canonical TruncateTime EDM function to return
the given date with the time portion cleared.
When used as part of a LINQ to Entities query this method invokes the canonical TruncateTime EDM function to return the given date with the time portion cleared .
The input date with the time portion cleared.
The input date with the time portion cleared .
dateValue
DateTimeOffset?
The date/time value to use.
The date / time value to use .
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 .