摘要: 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); 阅读全文
posted @ 2012-08-31 13:45 webglcn 阅读(182) 评论(0) 推荐(0) 编辑