Don't do this:
public DataStore(NHibernate.ISessionFactory sessionFactory) { _transaction = (_session = (_sessionFactory = sessionFactory).OpenSession()).BeginTransaction(); }
Do this:
public DataStore(NHibernate.ISessionFactory sessionFactory) { _sessionFactory = sessionFactory; _session = _sessionFactory.OpenSession(); _transaction = _session.BeginTransaction(); }
No comments:
Post a Comment