Bagikan melalui


EdmFunctions.DiffMicroseconds(DbExpression, DbExpression) Metode

Definisi

DbFunctionExpression Membuat yang memanggil fungsi 'DiffMicroseconds' kanonis dengan argumen yang ditentukan, yang masing-masing harus memiliki jenis hasil DateTime, DateTimeOffset, atau Time. Jenis hasil ekspresi adalah Edm.Int32.

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

Parameter

timeValue1
DbExpression

Ekspresi yang menentukan argumen nilai pertama kali.

timeValue2
DbExpression

Ekspresi yang menentukan argumen nilai kedua kalinya.

Mengembalikan

DbFunctionExpression baru yang mengembalikan jumlah mikrodetik yang merupakan perbedaan antara timeValue1 dan timeValue2.

Berlaku untuk