摘要: 一个简单的Nhibernate查询,居然有Update事件。ISessionFactory sessionFactory = cfg.BuildSessionFactory(); using (ISession session = sessionFactory.OpenSession()) { ITransaction tran = session.BeginTransaction(); Artist a = session.CreateQuery("from Artist") .SetMaxResults(1) ... 阅读全文
posted @ 2011-11-09 15:48 db's jim 阅读(294) 评论(0) 推荐(1) 编辑