EdmFunctions.DiffNanoseconds(DbExpression, DbExpression) Metodo

Definizione

Crea un oggetto DbFunctionExpression che richiama la funzione 'DiffNanoseconds' 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 ^ DiffNanoseconds(System::Data::Common::CommandTrees::DbExpression ^ timeValue1, System::Data::Common::CommandTrees::DbExpression ^ timeValue2);
public static System.Data.Common.CommandTrees.DbFunctionExpression DiffNanoseconds (this System.Data.Common.CommandTrees.DbExpression timeValue1, System.Data.Common.CommandTrees.DbExpression timeValue2);
static member DiffNanoseconds : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function DiffNanoseconds (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 nanosecondi che è la differenza tra timeValue1 e timeValue2.

Si applica a