From: Michael D. <mik...@us...> - 2005-01-24 03:31:54
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7247/NHibernate/Impl Modified Files: SessionFactoryImpl.cs Log Message: some comments added to the code. Index: SessionFactoryImpl.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl/SessionFactoryImpl.cs,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** SessionFactoryImpl.cs 31 Dec 2004 19:54:19 -0000 1.38 --- SessionFactoryImpl.cs 24 Jan 2005 03:31:45 -0000 1.39 *************** *** 421,425 **** public ISession OpenSession( IDbConnection connection, IInterceptor interceptor ) { ! //TODO: figure out why autoClose was set to false - diff in JDBC vs ADO.NET??? return OpenSession( connection, false, long.MinValue, interceptor ); } --- 421,426 ---- public ISession OpenSession( IDbConnection connection, IInterceptor interceptor ) { ! // specify false for autoClose because the user has passed in an IDbConnection ! // and they assume responsibility for it. return OpenSession( connection, false, long.MinValue, interceptor ); } *************** *** 433,436 **** --- 434,439 ---- { long timestamp = Timestamper.Next(); + // specify true for autoClose because NHibernate has responsibility for + // the IDbConnection. return OpenSession( null, true, timestamp, interceptor ); } |