EdmFunctions.DiffMilliseconds(DbExpression, DbExpression) Metódus

Definíció

Létrehoz egy olyan függvényt DbFunctionExpression , amely meghívja a "DiffMilliseconds" függvényt a megadott argumentumokkal, amelyeknek mindegyiknek DateTime, DateTimeOffset vagy Time eredménytípussal kell rendelkeznie. A kifejezés eredménytípusa: Edm.Int32.

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

Paraméterek

timeValue1
DbExpression

Az első alkalommal megadott érték argumentumot meghatározó kifejezés.

timeValue2
DbExpression

Egy kifejezés, amely a második időérték argumentumát adja meg.

Válaszok

Egy új DbFunctionExpression, amely az ezredmásodpercek számát adja vissza, amely a különbség timeValue1 és timeValue2a .

A következőre érvényes: