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