语言

DbExpressionBuilder.Modulo(DbExpression, DbExpression) 方法

定义

创建一个新 DbArithmeticExpression 值,用于计算左参数的其余部分除以右参数。

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

参数

left
DbExpression

一个指定左参数的表达式。

right
DbExpression

一个指定正确参数的表达式。

返回

表示模数运算的新 DbArithmeticExpression。

例外

向左或向右为 null。

左侧和右侧之间不存在常见的数值结果类型。

适用于