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

定義

指定した引数を使用して正規の 'DiffHours' 関数を呼び出す DbFunctionExpression を作成します。この関数には、それぞれ DateTime、DateTimeOffset、または Time の結果型が必要です。 式の結果の型は Edm.Int32 です。

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

パラメーター

timeValue1
DbExpression

最初の時刻値の引数を指定する式。

timeValue2
DbExpression

2 番目の時間値引数を指定する式。

返品

timeValue1timeValue2の差である時間数を返す新しい DbFunctionExpression。

適用対象