Language

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

定義

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

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression AddDays(this System.Data.Entity.Core.Common.CommandTrees.DbExpression dateValue, System.Data.Entity.Core.Common.CommandTrees.DbExpression addValue);
static member AddDays : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function AddDays (dateValue As DbExpression, addValue As DbExpression) As DbFunctionExpression

パラメーター

dateValue
DbExpression

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

addValue
DbExpression

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

戻り値

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

適用対象