EdmFunctions.DiffMilliseconds(DbExpression, DbExpression) Yöntem

Tanım

Her birinde DateTime, DateTimeOffset veya Time sonuç türü olması gereken belirtilen bağımsız değişkenlerle kurallı 'DiffMilliseconds' işlevini çağıran bir DbFunctionExpression oluşturur. İfadenin sonuç türü Edm.Int32'dir.

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

Parametreler

timeValue1
DbExpression

İlk kez değer bağımsız değişkenini belirten bir ifade.

timeValue2
DbExpression

İkinci kez değer bağımsız değişkenini belirten bir ifade.

Döndürülenler

ile timeValue2arasındaki timeValue1 fark olan milisaniye sayısını döndüren yeni bir DbFunctionExpression.

Şunlara uygulanır