Skip to content

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

Closed
@pccai

Description

@pccai

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions