แก้ไข

แชร์ผ่าน


DbExpressionBuilder.Modulo(DbExpression, DbExpression) Method

Definition

Creates a new DbArithmeticExpression that computes the remainder of the left argument divided by the right argument.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbArithmeticExpression ^ Modulo(System::Data::Common::CommandTrees::DbExpression ^ left, System::Data::Common::CommandTrees::DbExpression ^ right);
public static System.Data.Common.CommandTrees.DbArithmeticExpression Modulo (this System.Data.Common.CommandTrees.DbExpression left, System.Data.Common.CommandTrees.DbExpression right);
static member Modulo : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbArithmeticExpression
<Extension()>
Public Function Modulo (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 modulo operation.

Exceptions

left or right is null.

No common numeric result type exists between left and right.

Applies to