我只是想知道在使用带有几个左连接的one.toManies接口的情况下,我如何应用偏移量和限制查询参数?
我的示例DSL是:
withSQL {
select.from(CustomerTable as cust)
.leftJoin(SocialNetworkTable as sn).on(cust.id, sn.customerId)
.leftJoin(MailingTable as ml).on(cust.id, ml.customerId)
}.one(CustomerTable(cust)).toManies(...)所以我想在父CustomerTable上分页。
你有做这件事的最佳实践吗?
发布于 2017-05-20 17:03:03
使用Skinny ORM的分页功能会更好(或者实现您自己的分页功能...)。
http://skinny-framework.org/documentation/orm.html
https://stackoverflow.com/questions/43891602
复制相似问题