EdmFunctions.DiffMonths(DbExpression, DbExpression) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した引数を使用して正規の 'DiffMonths' 関数を呼び出す DbFunctionExpression を作成します。この関数には、それぞれ DateTime または DateTimeOffset の結果型が必要です。 式の結果の型は Edm.Int32 です。
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbFunctionExpression ^ DiffMonths(System::Data::Common::CommandTrees::DbExpression ^ dateValue1, System::Data::Common::CommandTrees::DbExpression ^ dateValue2);
public static System.Data.Common.CommandTrees.DbFunctionExpression DiffMonths(this System.Data.Common.CommandTrees.DbExpression dateValue1, System.Data.Common.CommandTrees.DbExpression dateValue2);
static member DiffMonths : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function DiffMonths (dateValue1 As DbExpression, dateValue2 As DbExpression) As DbFunctionExpression
パラメーター
- dateValue1
- DbExpression
最初の日付値引数を指定する式。
- dateValue2
- DbExpression
2 番目の日付値引数を指定する式。
返品
dateValue1とdateValue2の差である月数を返す新しい DbFunctionExpression。