From: Michael D. <mik...@us...> - 2005-01-03 03:44:50
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Cfg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16287/NHibernate/Cfg Modified Files: Configuration.cs Log Message: minor code tweak to use stuff built into framework. Index: Configuration.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Cfg/Configuration.cs,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** Configuration.cs 31 Dec 2004 15:54:07 -0000 1.26 --- Configuration.cs 3 Jan 2005 03:44:41 -0000 1.27 *************** *** 631,647 **** public ISessionFactory BuildSessionFactory() { - // Version check to determine which version of .NET is running - if( ( System.Environment.Version.Major == 1 ) - && ( System.Environment.Version.Minor == 0 ) ) - { - throw new HibernateException( "Wrong version of .NET framework is used, NHibernate is not to be used with versions prior to 1.1.4322" ); - } - SecondPassCompile(); ! Hashtable copy = new Hashtable(); ! foreach( DictionaryEntry de in properties ) ! { ! copy.Add( de.Key, de.Value ); ! } Settings settings = BuildSettings(); --- 631,636 ---- public ISessionFactory BuildSessionFactory() { SecondPassCompile(); ! Hashtable copy = new Hashtable( properties ); Settings settings = BuildSettings(); |