EdmFunctions.DiffSeconds(DbExpression, DbExpression) Yöntem

Tanım

Belirtilen bağımsız değişkenlerle kurallı 'DiffSeconds' işlevini çağıran ve her birinin DateTime, DateTimeOffset veya Time sonuç türüne sahip olması gereken bir DbFunctionExpression oluşturur. İfadenin sonuç türü Edm.Int32'dir.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ DiffSeconds(System::Data::Common::CommandTrees::DbExpression ^ timeValue1, System::Data::Common::CommandTrees::DbExpression ^ timeValue2);
public static System.Data.Common.CommandTrees.DbFunctionExpression DiffSeconds (this System.Data.Common.CommandTrees.DbExpression timeValue1, System.Data.Common.CommandTrees.DbExpression timeValue2);
static member DiffSeconds : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function DiffSeconds (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 saat değeri bağımsız değişkenini belirten bir ifade.

Döndürülenler

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

Şunlara uygulanır