From: Michael D. <mik...@us...> - 2005-03-15 14:06:42
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Cfg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7507/Cfg Modified Files: Configuration.cs Log Message: nh-225: simple fixes to make config from xml more flexible and null values for session-factory name safe. Index: Configuration.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Cfg/Configuration.cs,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** Configuration.cs 14 Mar 2005 14:35:54 -0000 1.34 --- Configuration.cs 15 Mar 2005 14:06:30 -0000 1.35 *************** *** 1032,1036 **** } ! XmlNode sfNode = doc.DocumentElement.SelectSingleNode( CfgNamespacePrefix + ":session-factory", CfgNamespaceMgr ); XmlAttribute name = sfNode.Attributes[ "name" ]; if( name != null ) --- 1032,1036 ---- } ! XmlNode sfNode = doc.DocumentElement.SelectSingleNode( "//" + CfgNamespacePrefix + ":session-factory", CfgNamespaceMgr ); XmlAttribute name = sfNode.Attributes[ "name" ]; if( name != null ) *************** *** 1070,1074 **** } ! log.Info( "Configured SessionFactory: " + name.Value ); log.Debug( "properties: " + properties ); --- 1070,1077 ---- } ! if( name!=null ) ! { ! log.Info( "Configured SessionFactory: " + name.Value ); ! } log.Debug( "properties: " + properties ); |