Nhibernate中CreateSQLQuery用法实例
摘要:
CreateSQLQuery用法实例:(其中ISession session = NHibernateHelper.GetCurrentSession();)
用法一(返回数值):
ISQLQuery query = session.CreateSQLQuery("SELECT COUNT(Id) AS C FROM Cake").AddScalar("C", NHibernateUtil.Int32);
阅读全文
posted @ 2008-12-28 19:46 张皓 阅读(6505) 评论(0) 推荐(0) 编辑