EdmFunctions.DiffMicroseconds(DbExpression, DbExpression) Methode

Definitie

Hiermee maakt u een DbFunctionExpression functie die de canonieke functie DiffMicroseconds aanroept met de opgegeven argumenten, die elk het resultaattype DateTime, DateTimeOffset of Tijd moeten hebben. Het resultaattype van de expressie is 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

Parameters

timeValue1
DbExpression

Een expressie die het eerste waardeargument aangeeft.

timeValue2
DbExpression

Een expressie die het argument voor de tweede keerwaarde aangeeft.

Retouren

Een nieuwe DbFunctionExpression die het aantal microseconden retourneert dat het verschil is tussen timeValue1 en timeValue2.

Van toepassing op