EntityFunctions.AddHours メソッド

定義

正規の AddHours 関数を呼び出します。 正規 AddHours 関数の詳細については、「 日付と時刻の正規関数」を参照してください。

オーバーロード

名前 説明
AddHours(Nullable<DateTime>, Nullable<Int32>)

正規の AddHours 関数を呼び出します。 正規 AddHours 関数の詳細については、「 日付と時刻の正規関数」を参照してください。

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

正規の AddHours 関数を呼び出します。 正規 AddHours 関数の詳細については、「 日付と時刻の正規関数」を参照してください。

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

正規の AddHours 関数を呼び出します。 正規 AddHours 関数の詳細については、「 日付と時刻の正規関数」を参照してください。

注釈

この関数を直接呼び出すことはできません。 この関数は、LINQ to Entities クエリ内でのみ使用できます。

この関数は、データベース内の対応する関数に変換されます。

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

正規の AddHours 関数を呼び出します。 正規 AddHours 関数の詳細については、「 日付と時刻の正規関数」を参照してください。

public:
 static Nullable<DateTime> AddHours(Nullable<DateTime> timeValue, Nullable<int> addValue);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "AddHours")]
public static DateTime? AddHours(DateTime? timeValue, int? addValue);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "AddHours")>]
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)

パラメーター

timeValue
Nullable<DateTime>

有効な日付。

addValue
Nullable<Int32>

timeValueに追加する時間数。

返品

timeValue addValueずつインクリメントされます。

属性

注釈

この関数を直接呼び出すことはできません。 この関数は、LINQ to Entities クエリ内でのみ使用できます。

この関数は、データベース内の対応する関数に変換されます。

適用対象

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

正規の AddHours 関数を呼び出します。 正規 AddHours 関数の詳細については、「 日付と時刻の正規関数」を参照してください。

public:
 static Nullable<DateTimeOffset> AddHours(Nullable<DateTimeOffset> timeValue, Nullable<int> addValue);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "AddHours")]
public static DateTimeOffset? AddHours(DateTimeOffset? timeValue, int? addValue);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "AddHours")>]
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)

パラメーター

timeValue
Nullable<DateTimeOffset>

有効な日付と時刻のオフセット。

addValue
Nullable<Int32>

timeValueに追加する時間数。

返品

timeValue addValueずつインクリメントされます。

属性

注釈

この関数を直接呼び出すことはできません。 この関数は、LINQ to Entities クエリ内でのみ使用できます。

この関数は、データベース内の対応する関数に変換されます。

適用対象

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

正規の AddHours 関数を呼び出します。 正規 AddHours 関数の詳細については、「 日付と時刻の正規関数」を参照してください。

public:
 static Nullable<TimeSpan> AddHours(Nullable<TimeSpan> timeValue, Nullable<int> addValue);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "AddHours")]
public static TimeSpan? AddHours(TimeSpan? timeValue, int? addValue);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "AddHours")>]
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)

パラメーター

timeValue
Nullable<TimeSpan>

有効な期間。

addValue
Nullable<Int32>

timeValueに追加する時間数。

返品

timeValue addValueずつインクリメントされます。

属性

注釈

この関数を直接呼び出すことはできません。 この関数は、LINQ to Entities クエリ内でのみ使用できます。

この関数は、データベース内の対応する関数に変換されます。

適用対象