EdmFunctions.DiffMicroseconds(DbExpression, DbExpression) Método

Definição

Cria um DbFunctionExpression que invoca a função "DiffMicroseconds" canônica com os argumentos especificados, que devem ter cada tipo de resultado DateTime, DateTimeOffset ou Time. O tipo de resultado da expressão é 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

Uma expressão que especifica o argumento de valor da primeira vez.

timeValue2
DbExpression

Uma expressão que especifica o argumento de valor de segunda hora.

Retornos

Um novo DbFunctionExpression que retorna o número de microssegundos que é a diferença entre timeValue1 e timeValue2.

Aplica-se a