Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

封装的排序查询,不大会使用,麻烦指导下 #5

Open
carlylr opened this issue Dec 21, 2023 · 1 comment
Open

封装的排序查询,不大会使用,麻烦指导下 #5

carlylr opened this issue Dec 21, 2023 · 1 comment

Comments

@carlylr
Copy link

carlylr commented Dec 21, 2023

Task<List> QueryAllAsync(Expression<Func<T, bool>> where, List<SqlSugarOrder> orders, bool isClearFilter = false)

@XuRuiO
Copy link
Owner

XuRuiO commented May 5, 2024

封装有些太麻烦了,抱歉哈
return await baseDal.QueryMuchAnonymityAsync<User, Role, dynamic>
(
(t1, t2) => new JoinQueryInfos(JoinType.Inner, t1.RoleId.Contains(t2.Id.ToString())),
(t1, t2) => new { t1.Id, RoleName = t2.Name },
null,
new List() {
new OrderByClause(){ Sort="t2.Name",Order=SqlSugarEnums.OrderSequence.Asc}
}
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants