EntityFunctions.AddDays 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.
Invokes the canonical AddDays
function. For information about the canonical AddDays
function, see Date and Time Canonical Functions.
Overloads
AddDays(Nullable<DateTime>, Nullable<Int32>) |
Invokes the canonical |
AddDays(Nullable<DateTimeOffset>, Nullable<Int32>) |
Invokes the canonical |
AddDays(Nullable<DateTime>, Nullable<Int32>)
Invokes the canonical AddDays
function. For information about the canonical AddDays
function, see Date and Time Canonical Functions.
public:
static Nullable<DateTime> AddDays(Nullable<DateTime> dateValue, Nullable<int> addValue);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "AddDays")]
public static DateTime? AddDays (DateTime? dateValue, int? addValue);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "AddDays")>]
static member AddDays : Nullable<DateTime> * Nullable<int> -> Nullable<DateTime>
Public Shared Function AddDays (dateValue As Nullable(Of DateTime), addValue As Nullable(Of Integer)) As Nullable(Of DateTime)
Parameters
Returns
The dateValue
incremented by addValue
.
- 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
AddDays(Nullable<DateTimeOffset>, Nullable<Int32>)
Invokes the canonical AddDays
function. For information about the canonical AddDays
function, see Date and Time Canonical Functions.
public:
static Nullable<DateTimeOffset> AddDays(Nullable<DateTimeOffset> dateValue, Nullable<int> addValue);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "AddDays")]
public static DateTimeOffset? AddDays (DateTimeOffset? dateValue, int? addValue);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "AddDays")>]
static member AddDays : Nullable<DateTimeOffset> * Nullable<int> -> Nullable<DateTimeOffset>
Public Shared Function AddDays (dateValue As Nullable(Of DateTimeOffset), addValue As Nullable(Of Integer)) As Nullable(Of DateTimeOffset)
Parameters
- dateValue
- Nullable<DateTimeOffset>
A valid date time offset.
Returns
The dateValue
incremented by addValue
.
- 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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om