Table Join where 不能传动态 Fun<T,bool> 表达式 返回

SqlSugar 老数据
1 2868
该叫什么 master 发布于2017/5/22
悬赏: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