EdmFunctions.DiffNanoseconds(DbExpression, DbExpression) Metodo

Definizione

Crea un oggetto DbFunctionExpression che richiama la funzione 'DiffNanoseconds' canonica con gli argomenti specificati, che devono avere ogni 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 l'argomento del valore della prima volta.

timeValue2
DbExpression

Espressione che specifica il secondo argomento valore di ora.

Valori restituiti

Nuovo DbFunctionExpression che restituisce il numero di nanosecondi che rappresenta la differenza tra timeValue1 e timeValue2.

Si applica a