mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
Exp to Support Modulo
This commit is contained in:
@@ -418,6 +418,7 @@ namespace OrmTest.Demo
|
||||
var test28 = db.Queryable<Student>().Select(x => new Student{
|
||||
Name = x.Name == null ? "1" : "2"
|
||||
}).ToList();
|
||||
var test29 = db.Queryable<Student>().Where(it=>it.Id%1==0).ToList();
|
||||
//var test29 = db.Queryable<Student>().Select(x => new Student
|
||||
//{
|
||||
// Name = x.Name??"a"
|
||||
|
@@ -41,6 +41,8 @@ namespace SqlSugar
|
||||
case ExpressionType.Multiply:
|
||||
case ExpressionType.MultiplyChecked:
|
||||
return "*";
|
||||
case ExpressionType.Modulo:
|
||||
return "%";
|
||||
case ExpressionType.Coalesce:
|
||||
throw new Exception("Expression no support ?? ,Use SqlFunc.IsNull");
|
||||
default:
|
||||
|
Reference in New Issue
Block a user