EdmFunctions.DiffMicroseconds(DbExpression, DbExpression) Método

Definición

Crea un DbFunctionExpression objeto que invoca la función 'DiffMicroseconds' canónica con los argumentos especificados, que deben tener un tipo de resultado DateTime, DateTimeOffset o Time. El tipo de resultado de la expresión es 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

Parámetros

timeValue1
DbExpression

Expresión que especifica el primer argumento de valor.

timeValue2
DbExpression

Expresión que especifica el segundo argumento de valor de hora.

Devoluciones

Nuevo DbFunctionExpression que devuelve el número de microsegundos que es la diferencia entre timeValue1 y timeValue2.

Se aplica a