EdmFunctions.DiffMilliseconds(DbExpression, DbExpression) Metodo

Definizione

Crea un oggetto DbFunctionExpression che richiama la funzione 'DiffMilliseconds' canonica con gli argomenti specificati, ognuno dei quali deve presentare un tipo di risultato DateTime, DateTimeOffset o Time. Il tipo di risultato dell'espressione è 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

Parametri

timeValue1
DbExpression

Espressione che specifica il primo argomento di valore di ora.

timeValue2
DbExpression

Espressione che specifica il secondo argomento di valore di ora.

Restituisce

Nuovo DbFunctionExpression che restituisce il numero di millisecondi che corrisponde alla differenza tra timeValue1 e timeValue2.

Si applica a