src/Shared/EntityFramework/DbFunctions.cs
/// <summary>
/// When used as part of a LINQ to Entities query, this method invokes the canonical DiffNanoseconds EDM function to
/// calculate the number of nanoseconds between two date/times.
/// </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="timeValue1"> The first date/time. </param>
/// <param name="timeValue2"> The second date/time. </param>
/// <returns> The number of nanoseconds between the first and second date/times. </returns>
When used as part of a LINQ to Entities query, this method invokes the canonical DiffNanoseconds EDM function to
calculate the number of nanoseconds between two date/times.
When used as part of a LINQ to Entities query this method invokes the canonical DiffNanoseconds EDM function to calculate the number of nanoseconds between two date / times .
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "timeValue2")]
        [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "timeValue1")]
        [DbFunction("Edm", "DiffNanoseconds")]
        public static int? DiffNanoseconds(DateTimeOffset? timeValue1, DateTimeOffset? timeValue2)
        {
            throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
        }
[ SuppressMessage ( " " , " " , MessageId = " " ) ] [ SuppressMessage ( " " , " " , MessageId = " " ) ] [ DbFunction ( " " , " " ) ] public static int ? DiffNanoseconds ( DateTimeOffset ? timeValue1 , DateTimeOffset ? timeValue2 ) { throw new NotSupportedException ( Strings . ELinq_DbFunctionDirectCall ) ; }
When used as part of a LINQ to Entities query, this method invokes the canonical DiffNanoseconds EDM function to
calculate the number of nanoseconds between two date/times.
When used as part of a LINQ to Entities query this method invokes the canonical DiffNanoseconds EDM function to calculate the number of nanoseconds between two date / times .
The number of nanoseconds between the first and second date/times.
The number of nanoseconds between the first and second date / times .
timeValue1
DateTimeOffset?
The first date/time.
The first date / time .
timeValue2
DateTimeOffset?
The second date/time.
The second date / time .
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 .