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