EdmFunctions.DiffMicroseconds(DbExpression, DbExpression) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Crée un DbFunctionExpression élément qui appelle la fonction « DiffMicroseconds » canonique avec les arguments spécifiés, qui doivent chacun avoir le type de résultat DateTime, DateTimeOffset ou Heure. Le type de résultat de l’expression est 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
Paramètres
- timeValue1
- DbExpression
Expression qui spécifie l’argument valeur de la première fois.
- timeValue2
- DbExpression
Expression qui spécifie le deuxième argument de valeur de temps.
Retours
Nouvelle DbFunctionExpression qui retourne le nombre de microsecondes qui est la différence entre timeValue1 et timeValue2.