Share via


DbExpressionBuilder.Divide(DbExpression, DbExpression) Method

Definition

Creates a new DbArithmeticExpression that divides the left argument by the right argument.

public static System.Data.Entity.Core.Common.CommandTrees.DbArithmeticExpression Divide (this System.Data.Entity.Core.Common.CommandTrees.DbExpression left, System.Data.Entity.Core.Common.CommandTrees.DbExpression right);
static member Divide : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbArithmeticExpression
<Extension()>
Public Function Divide (left As DbExpression, right As DbExpression) As DbArithmeticExpression

Parameters

left
DbExpression

An expression that specifies the left argument.

right
DbExpression

An expression that specifies the right argument.

Returns

A new DbArithmeticExpression representing the division operation.

Exceptions

left or right is null.

No common numeric result type exists between left or right.

Applies to