EntityFunctions.AddHours EntityFunctions.AddHours EntityFunctions.AddHours EntityFunctions.AddHours Method

Definition

Invokes the canonical AddHours function. For information about the canonical AddHours function, see Date and Time Canonical Functions.

Overloads

AddHours(Nullable<DateTime>, Nullable<Int32>) AddHours(Nullable<DateTime>, Nullable<Int32>) AddHours(Nullable<DateTime>, Nullable<Int32>) AddHours(Nullable<DateTime>, Nullable<Int32>)

Invokes the canonical AddHours function. For information about the canonical AddHours function, see Date and Time Canonical Functions.

AddHours(Nullable<DateTimeOffset>, Nullable<Int32>) AddHours(Nullable<DateTimeOffset>, Nullable<Int32>) AddHours(Nullable<DateTimeOffset>, Nullable<Int32>) AddHours(Nullable<DateTimeOffset>, Nullable<Int32>)

Invokes the canonical AddHours function. For information about the canonical AddHours function, see Date and Time Canonical Functions.

AddHours(Nullable<TimeSpan>, Nullable<Int32>) AddHours(Nullable<TimeSpan>, Nullable<Int32>) AddHours(Nullable<TimeSpan>, Nullable<Int32>) AddHours(Nullable<TimeSpan>, Nullable<Int32>)

Invokes the canonical AddHours function. For information about the canonical AddHours function, see Date and Time Canonical Functions.

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.

AddHours(Nullable<DateTime>, Nullable<Int32>) AddHours(Nullable<DateTime>, Nullable<Int32>) AddHours(Nullable<DateTime>, Nullable<Int32>) AddHours(Nullable<DateTime>, Nullable<Int32>)

Invokes the canonical AddHours function. For information about the canonical AddHours function, see Date and Time Canonical Functions.

public:
 static Nullable<DateTime> AddHours(Nullable<DateTime> timeValue, Nullable<int> addValue);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "AddHours")]
public static Nullable<DateTime> AddHours (Nullable<DateTime> timeValue, Nullable<int> addValue);
static member AddHours : Nullable<DateTime> * Nullable<int> -> Nullable<DateTime>
Public Shared Function AddHours (timeValue As Nullable(Of DateTime), addValue As Nullable(Of Integer)) As Nullable(Of DateTime)

Parameters

timeValue
Nullable<DateTime>

A valid date.

addValue
Nullable<Int32>

The number of hours to add to timeValue.

Returns

The timeValue incremented by addValue.

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.

AddHours(Nullable<DateTimeOffset>, Nullable<Int32>) AddHours(Nullable<DateTimeOffset>, Nullable<Int32>) AddHours(Nullable<DateTimeOffset>, Nullable<Int32>) AddHours(Nullable<DateTimeOffset>, Nullable<Int32>)

Invokes the canonical AddHours function. For information about the canonical AddHours function, see Date and Time Canonical Functions.

public:
 static Nullable<DateTimeOffset> AddHours(Nullable<DateTimeOffset> timeValue, Nullable<int> addValue);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "AddHours")]
public static Nullable<DateTimeOffset> AddHours (Nullable<DateTimeOffset> timeValue, Nullable<int> addValue);
static member AddHours : Nullable<DateTimeOffset> * Nullable<int> -> Nullable<DateTimeOffset>
Public Shared Function AddHours (timeValue As Nullable(Of DateTimeOffset), addValue As Nullable(Of Integer)) As Nullable(Of DateTimeOffset)

Parameters

timeValue
Nullable<DateTimeOffset>

A valid date time offset.

addValue
Nullable<Int32>

The number of hours to add to timeValue.

Returns

The timeValue incremented by addValue.

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.

AddHours(Nullable<TimeSpan>, Nullable<Int32>) AddHours(Nullable<TimeSpan>, Nullable<Int32>) AddHours(Nullable<TimeSpan>, Nullable<Int32>) AddHours(Nullable<TimeSpan>, Nullable<Int32>)

Invokes the canonical AddHours function. For information about the canonical AddHours function, see Date and Time Canonical Functions.

public:
 static Nullable<TimeSpan> AddHours(Nullable<TimeSpan> timeValue, Nullable<int> addValue);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "AddHours")]
public static Nullable<TimeSpan> AddHours (Nullable<TimeSpan> timeValue, Nullable<int> addValue);
static member AddHours : Nullable<TimeSpan> * Nullable<int> -> Nullable<TimeSpan>
Public Shared Function AddHours (timeValue As Nullable(Of TimeSpan), addValue As Nullable(Of Integer)) As Nullable(Of TimeSpan)

Parameters

timeValue
Nullable<TimeSpan>

A valid time span.

addValue
Nullable<Int32>

The number of hours to add to timeValue.

Returns

The timeValue incremented by addValue.

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