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不存在常见的数值结果类型。

适用于