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

咨询string, parms 形式的OrderBy写法 #361

Closed
pccai opened this issue Jun 30, 2020 · 3 comments
Closed

咨询string, parms 形式的OrderBy写法 #361

pccai opened this issue Jun 30, 2020 · 3 comments

Comments

@pccai
Copy link

pccai commented Jun 30, 2020

OrderBy | | string, parms | 按原生sql语法排序,OrderBy("count(name) + ?cc", new { cc = 1 })

select * from Tags order by created, category desc

多个字段排序如何写呢?tks

return conn.Select(parms)
.Count(out total)
.Page(current, pageSize)
.OrderBy(“created + @cc" , new {cc= 1})
.ToList();

@2881099
Copy link
Collaborator

2881099 commented Jun 30, 2020

OrderBy(“created desc, id asc”)

@zhaoxingyu999
Copy link

1G_VJ(CT X~ZF YO4MC C9B
ISelectGouping 如何实现上如string params orderby的写法

@2881099
Copy link
Collaborator

2881099 commented May 10, 2022

ISelectGrouping 不能字符串

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

3 participants