共用方式為


DbExpressionBuilder.Modulo(DbExpression, DbExpression) 方法

定義

建立新的 DbArithmeticExpression,這個運算式會計算左引數除以右引數的餘數。

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

參數

left
DbExpression

指定左引數的運算式。

right
DbExpression

指定右引數的運算式。

傳回

表示模數運算的新 DbArithmeticExpression。

例外狀況

leftright 為 null。

leftright 之間,不存在一般數字結果型別。

適用於