EntityFunctions.AddNanoseconds 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
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. |
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.
[System.Data.Entity.DbFunction("Edm", "AddNanoseconds")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="addValue")]
public static Nullable<DateTime> AddNanoseconds (Nullable<DateTime> timeValue, Nullable<int> addValue);
static member AddNanoseconds : Nullable<DateTime> * Nullable<int> -> Nullable<DateTime>
Public Shared Function AddNanoseconds (timeValue As Nullable(Of DateTime), addValue As Nullable(Of Integer)) As Nullable(Of DateTime)
Parameters
Returns
A resulting date/time.
- 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
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.
[System.Data.Entity.DbFunction("Edm", "AddNanoseconds")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="addValue")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue")]
public static Nullable<DateTimeOffset> AddNanoseconds (Nullable<DateTimeOffset> timeValue, Nullable<int> addValue);
static member AddNanoseconds : Nullable<DateTimeOffset> * Nullable<int> -> Nullable<DateTimeOffset>
Public Shared Function AddNanoseconds (timeValue As Nullable(Of DateTimeOffset), addValue As Nullable(Of Integer)) As Nullable(Of DateTimeOffset)
Parameters
- timeValue
- Nullable<DateTimeOffset>
The input date/time.
Returns
A resulting date/time.
- 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
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.
[System.Data.Entity.DbFunction("Edm", "AddNanoseconds")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="addValue")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="timeValue")]
public static Nullable<TimeSpan> AddNanoseconds (Nullable<TimeSpan> timeValue, Nullable<int> addValue);
static member AddNanoseconds : Nullable<TimeSpan> * Nullable<int> -> Nullable<TimeSpan>
Public Shared Function AddNanoseconds (timeValue As Nullable(Of TimeSpan), addValue As Nullable(Of Integer)) As Nullable(Of TimeSpan)
Parameters
Returns
A resulting time span.
- 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