次の方法で共有


DbFunctions.AddMonths メソッド

定義

オーバーロード

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

LINQ to Entities クエリの一部として使用する場合、このメソッドは正規の AddMonths EDM 関数を呼び出して、指定された月数を日付/時刻に追加します。

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

LINQ to Entities クエリの一部として使用する場合、このメソッドは正規の AddMonths EDM 関数を呼び出して、指定された月数を日付/時刻に追加します。

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

LINQ to Entities クエリの一部として使用する場合、このメソッドは正規の AddMonths EDM 関数を呼び出して、指定された月数を日付/時刻に追加します。

[System.Data.Entity.DbFunction("Edm", "AddMonths")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="dateValue")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="addValue")]
public static Nullable<DateTime> AddMonths (Nullable<DateTime> dateValue, Nullable<int> addValue);
static member AddMonths : Nullable<DateTime> * Nullable<int> -> Nullable<DateTime>
Public Shared Function AddMonths (dateValue As Nullable(Of DateTime), addValue As Nullable(Of Integer)) As Nullable(Of DateTime)

パラメーター

dateValue
Nullable<DateTime>

入力日時。

addValue
Nullable<Int32>

加算する月の数。

戻り値

結果の日付/時刻。

属性

注釈

この関数を直接呼び出すことはできません。 この関数は、LINQ to Entities クエリ内でのみ使用できます。 この関数は、データベース内の対応する関数に変換されます。

適用対象

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

LINQ to Entities クエリの一部として使用する場合、このメソッドは正規の AddMonths EDM 関数を呼び出して、指定された月数を日付/時刻に追加します。

[System.Data.Entity.DbFunction("Edm", "AddMonths")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="dateValue")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="addValue")]
public static Nullable<DateTimeOffset> AddMonths (Nullable<DateTimeOffset> dateValue, Nullable<int> addValue);
static member AddMonths : Nullable<DateTimeOffset> * Nullable<int> -> Nullable<DateTimeOffset>
Public Shared Function AddMonths (dateValue As Nullable(Of DateTimeOffset), addValue As Nullable(Of Integer)) As Nullable(Of DateTimeOffset)

パラメーター

dateValue
Nullable<DateTimeOffset>

入力日時。

addValue
Nullable<Int32>

加算する月の数。

戻り値

結果の日付/時刻。

属性

注釈

この関数を直接呼び出すことはできません。 この関数は、LINQ to Entities クエリ内でのみ使用できます。 この関数は、データベース内の対応する関数に変換されます。

適用対象