DbFunctions.DiffMicroseconds Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DiffMicroseconds(Nullable<TimeSpan>, Nullable<TimeSpan>) |
When used as part of a LINQ to Entities query, this method invokes the canonical DiffMicroseconds EDM function to calculate the number of microseconds between two time spans. |
DiffMicroseconds(Nullable<DateTime>, Nullable<DateTime>) |
When used as part of a LINQ to Entities query, this method invokes the canonical DiffMicroseconds EDM function to calculate the number of microseconds between two date/times. |
DiffMicroseconds(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) |
When used as part of a LINQ to Entities query, this method invokes the canonical DiffMicroseconds EDM function to calculate the number of microseconds between two date/times. |
DiffMicroseconds(Nullable<TimeSpan>, Nullable<TimeSpan>)
When used as part of a LINQ to Entities query, this method invokes the canonical DiffMicroseconds EDM function to calculate the number of microseconds between two time spans.
[System.Data.Entity.DbFunction("Edm", "DiffMicroseconds")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue1")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue2")]
public static Nullable<int> DiffMicroseconds (Nullable<TimeSpan> timeValue1, Nullable<TimeSpan> timeValue2);
static member DiffMicroseconds : Nullable<TimeSpan> * Nullable<TimeSpan> -> Nullable<int>
Public Shared Function DiffMicroseconds (timeValue1 As Nullable(Of TimeSpan), timeValue2 As Nullable(Of TimeSpan)) As Nullable(Of Integer)
Parameters
Returns
The number of microseconds between the first and second time spans.
- Attributes
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
DiffMicroseconds(Nullable<DateTime>, Nullable<DateTime>)
When used as part of a LINQ to Entities query, this method invokes the canonical DiffMicroseconds EDM function to calculate the number of microseconds between two date/times.
[System.Data.Entity.DbFunction("Edm", "DiffMicroseconds")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue2")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue1")]
public static Nullable<int> DiffMicroseconds (Nullable<DateTime> timeValue1, Nullable<DateTime> timeValue2);
static member DiffMicroseconds : Nullable<DateTime> * Nullable<DateTime> -> Nullable<int>
Public Shared Function DiffMicroseconds (timeValue1 As Nullable(Of DateTime), timeValue2 As Nullable(Of DateTime)) As Nullable(Of Integer)
Parameters
Returns
The number of microseconds between the first and second date/times.
- Attributes
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
DiffMicroseconds(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)
When used as part of a LINQ to Entities query, this method invokes the canonical DiffMicroseconds EDM function to calculate the number of microseconds between two date/times.
[System.Data.Entity.DbFunction("Edm", "DiffMicroseconds")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue2")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue1")]
public static Nullable<int> DiffMicroseconds (Nullable<DateTimeOffset> timeValue1, Nullable<DateTimeOffset> timeValue2);
static member DiffMicroseconds : Nullable<DateTimeOffset> * Nullable<DateTimeOffset> -> Nullable<int>
Public Shared Function DiffMicroseconds (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 microseconds between the first and second date/times.
- Attributes
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
Entity Framework