摘要:
一个简单的Nhibernate查询,居然有Update事件。ISessionFactory sessionFactory = cfg.BuildSessionFactory(); using (ISession session = sessionFactory.OpenSession()) { ITransaction tran = session.BeginTransaction(); Artist a = session.CreateQuery("from Artist") .SetMaxResults(1) ... 阅读全文