EdmFunctions.DiffMilliseconds(DbExpression, DbExpression) Méthode

Définition

Crée un DbFunctionExpression élément qui appelle la fonction « DiffMilliseconds » 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 ^ 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è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 millisecondes qui correspond à la différence entre timeValue1 et timeValue2.

S’applique à