摘要:
Refer to http://www.martinwilley.com/net/code/nhibernate/query.html#ToC3E.g.Paging and avoid sql injectionIQuery q = s.CreateQuery("from Job as j where j.ServiceId in (:serviceIds)");q.SetParameterList("serviceIds", ids).SetFirstResult(10).SetMaxResults(10); 阅读全文