EdmFunctions.DiffMinutes(DbExpression, DbExpression) Método

Definición

Crea un objeto DbFunctionExpression que invoca la función 'DiffMinutes' canónica con los argumentos especificados, cada uno de los cuales debe 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 ^ DiffMinutes(System::Data::Common::CommandTrees::DbExpression ^ timeValue1, System::Data::Common::CommandTrees::DbExpression ^ timeValue2);
public static System.Data.Common.CommandTrees.DbFunctionExpression DiffMinutes (this System.Data.Common.CommandTrees.DbExpression timeValue1, System.Data.Common.CommandTrees.DbExpression timeValue2);
static member DiffMinutes : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function DiffMinutes (timeValue1 As DbExpression, timeValue2 As DbExpression) As DbFunctionExpression

Parámetros

timeValue1
DbExpression

Expresión que especifica el primer argumento de valor de tiempo.

timeValue2
DbExpression

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

Devoluciones

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

Se aplica a