DbFunctions.DiffNanoseconds DbFunctions.DiffNanoseconds DbFunctions.DiffNanoseconds Method

Definition

Overloads

DiffNanoseconds(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) DiffNanoseconds(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) DiffNanoseconds(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

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.

DiffNanoseconds(Nullable<TimeSpan>, Nullable<TimeSpan>) DiffNanoseconds(Nullable<TimeSpan>, Nullable<TimeSpan>) DiffNanoseconds(Nullable<TimeSpan>, Nullable<TimeSpan>)

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

DiffNanoseconds(Nullable<DateTime>, Nullable<DateTime>) DiffNanoseconds(Nullable<DateTime>, Nullable<DateTime>) DiffNanoseconds(Nullable<DateTime>, Nullable<DateTime>)

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.

DiffNanoseconds(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) DiffNanoseconds(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) DiffNanoseconds(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

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.

[System.Data.Entity.DbFunction("Edm", "DiffNanoseconds")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue2")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue1")]
public static Nullable<int> DiffNanoseconds (Nullable<DateTimeOffset> timeValue1, Nullable<DateTimeOffset> timeValue2);
static member DiffNanoseconds : Nullable<DateTimeOffset> * Nullable<DateTimeOffset> -> Nullable<int>
Public Shared Function DiffNanoseconds (timeValue1 As Nullable(Of DateTimeOffset), timeValue2 As Nullable(Of DateTimeOffset)) As Nullable(Of Integer)

Parameters

timeValue1
Nullable<DateTimeOffset>

The first date/time.

timeValue2
Nullable<DateTimeOffset>

The second date/time.

Returns

The number of nanoseconds between the first and second date/times.

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.

DiffNanoseconds(Nullable<TimeSpan>, Nullable<TimeSpan>) DiffNanoseconds(Nullable<TimeSpan>, Nullable<TimeSpan>) DiffNanoseconds(Nullable<TimeSpan>, Nullable<TimeSpan>)

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

[System.Data.Entity.DbFunction("Edm", "DiffNanoseconds")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue2")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue1")]
public static Nullable<int> DiffNanoseconds (Nullable<TimeSpan> timeValue1, Nullable<TimeSpan> timeValue2);
static member DiffNanoseconds : Nullable<TimeSpan> * Nullable<TimeSpan> -> Nullable<int>
Public Shared Function DiffNanoseconds (timeValue1 As Nullable(Of TimeSpan), timeValue2 As Nullable(Of TimeSpan)) As Nullable(Of Integer)

Parameters

timeValue1
Nullable<TimeSpan>

The first time span.

timeValue2
Nullable<TimeSpan>

The second time span.

Returns

The number of nanoseconds between the first and second time spans.

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.

DiffNanoseconds(Nullable<DateTime>, Nullable<DateTime>) DiffNanoseconds(Nullable<DateTime>, Nullable<DateTime>) DiffNanoseconds(Nullable<DateTime>, Nullable<DateTime>)

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.

[System.Data.Entity.DbFunction("Edm", "DiffNanoseconds")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue1")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue2")]
public static Nullable<int> DiffNanoseconds (Nullable<DateTime> timeValue1, Nullable<DateTime> timeValue2);
static member DiffNanoseconds : Nullable<DateTime> * Nullable<DateTime> -> Nullable<int>
Public Shared Function DiffNanoseconds (timeValue1 As Nullable(Of DateTime), timeValue2 As Nullable(Of DateTime)) As Nullable(Of Integer)

Parameters

timeValue1
Nullable<DateTime>

The first date/time.

timeValue2
Nullable<DateTime>

The second date/time.

Returns

The number of nanoseconds between the first and second date/times.

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.

Applies to