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