EdmFunctions.DiffMicroseconds(DbExpression, DbExpression) Metoda
V tomto článku
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Vytvoří funkci DbFunctionExpression , která vyvolá kanonickou funkci DiffMicroseconds se zadanými argumenty, které musí mít typ výsledku DateTime, DateTimeOffset nebo Time. Typ výsledku výrazu je 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
- timeValue1
- DbExpression
Výraz, který určuje argument hodnoty prvního času.
- timeValue2
- DbExpression
Výraz, který určuje argument hodnoty druhého času.
Nový DbFunctionExpression, který vrací počet mikrosekund, který je rozdílem mezi timeValue1
a timeValue2
.
Zpětná vazba k produktu .NET
.NET je open source projekt. Vyberte odkaz pro poskytnutí zpětné vazby: