EntityFunctions.AddMicroseconds Method
Invokes the canonical AddMicroseconds EDM function to add the given number of microseconds to a date/time when used a part of a LINQ to Entities query.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() ![]() | AddMicroseconds(Nullable<DateTime>, Nullable<Int32>) | When used as part of a LINQ to Entities query, this method invokes the canonical AddMicroseconds EDM function to add the given number of microseconds to a date/time. |
![]() ![]() | AddMicroseconds(Nullable<DateTimeOffset>, Nullable<Int32>) | When used as part of a LINQ to Entities query, this method invokes the canonical AddMicroseconds EDM function to add the given number of microseconds to a date/time. |
![]() ![]() | AddMicroseconds(Nullable<TimeSpan>, Nullable<Int32>) | When used as part of a LINQ to Entities query, this method invokes the canonical AddMicroseconds EDM function to add the given number of microseconds to a time span. |
EntityFunctions.AddMicroseconds Method (Nullable<DateTime>, Nullable<Int32>)
When used as part of a LINQ to Entities query, this method invokes the canonical AddMicroseconds EDM function to add the given number of microseconds to a date/time.
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "addValue")] [DbFunctionAttribute("Edm", "AddMicroseconds")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "timeValue")] public static Nullable<DateTime> AddMicroseconds( Nullable<DateTime> timeValue, Nullable<int> addValue )
Parameters
- timeValue
-
Type:
System.Nullable<DateTime>
The input date/time.
- addValue
-
Type:
System.Nullable<Int32>
The number of microseconds to add.
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.
EntityFunctions.AddMicroseconds Method (Nullable<DateTimeOffset>, Nullable<Int32>)
When used as part of a LINQ to Entities query, this method invokes the canonical AddMicroseconds EDM function to add the given number of microseconds to a date/time.
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "timeValue")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "addValue")] [DbFunctionAttribute("Edm", "AddMicroseconds")] public static Nullable<DateTimeOffset> AddMicroseconds( Nullable<DateTimeOffset> timeValue, Nullable<int> addValue )
Parameters
- timeValue
-
Type:
System.Nullable<DateTimeOffset>
The input date/time.
- addValue
-
Type:
System.Nullable<Int32>
The number of microseconds to add.
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.
EntityFunctions.AddMicroseconds Method (Nullable<TimeSpan>, Nullable<Int32>)
When used as part of a LINQ to Entities query, this method invokes the canonical AddMicroseconds EDM function to add the given number of microseconds to a time span.
[DbFunctionAttribute("Edm", "AddMicroseconds")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "addValue")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "timeValue")] public static Nullable<TimeSpan> AddMicroseconds( Nullable<TimeSpan> timeValue, Nullable<int> addValue )
Parameters
- timeValue
-
Type:
System.Nullable<TimeSpan>
The input date/time.
- addValue
-
Type:
System.Nullable<Int32>
The number of microseconds to add.
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.