Table Join where 不能传动态 Fun<T,bool> 表达式 返回
SqlSugar
老数据
1
2868

悬赏:100 飞吻
.Where((t1)=>t1.ArticleType==ArticleType.Article) 非要事先声明 t1 么?
实际应用场景 多数为动态条件表达式
return db.Queryable<A>()
.JoinTable<B>((t1, t2) => t1.CId == t2.Id, JoinType.Left)
.Where(where) //where 为 Fun<A,bool>
.OrderBy(t1 => t1.Id)
.Skip((query.page - 1) * query.rows)
.Take(query.rows).....
热忱回答(1)
-
fate stay night VIP0
2017/5/24现在的语法就这样,4.X这块会好很多
0 回复