--分页查询(1)
ORM.Get<T>((it => it.Where(o => o.Mark > 0).OrderBy(o => o.CreateDate)), 1, 30)
3.2.0.0 版本新增【链式语法】:
ORM.Build<T>()
.Get(it => it.Where(o => o.Mark > 0).OrderBy(o => o.CreateDate))
.ToPageList(1, 30);
--分页查询(2)
ORM.GetWhere<T>("where ClassID = @ClassID and Mark > 0", "order by CreateDate", 1, 30
, new { ClassID = "1" });