EdmFunctions.AddDays(DbExpression, DbExpression) メソッド

定義

指定した引数を使用して正規の 'AddDays' 関数を呼び出す DbFunctionExpression を作成します。引数には DateTime または DateTimeOffset と整数の結果型が必要です。 式の結果の型は、 dateValueの結果の型と同じです。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ AddDays(System::Data::Common::CommandTrees::DbExpression ^ dateValue, System::Data::Common::CommandTrees::DbExpression ^ addValue);
public static System.Data.Common.CommandTrees.DbFunctionExpression AddDays(this System.Data.Common.CommandTrees.DbExpression dateValue, System.Data.Common.CommandTrees.DbExpression addValue);
static member AddDays : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function AddDays (dateValue As DbExpression, addValue As DbExpression) As DbFunctionExpression

パラメーター

dateValue
DbExpression

addValueを追加する値を指定する式。

addValue
DbExpression

dateValueに追加する日数を指定する式。

返品

dateValueで指定された値にaddValue指定した日数を加算する新しい DbFunctionExpression。

例外

dateValue または addValuenull

dateValue または addValue が無効です。

適用対象