From: Peter S. <sz...@us...> - 2004-04-29 14:01:32
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Cfg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32453/NHibernate/Cfg Modified Files: Binder.cs Log Message: Some small H2.0.3 compatibility fix Index: Binder.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Cfg/Binder.cs,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** Binder.cs 15 Apr 2004 21:07:17 -0000 1.16 --- Binder.cs 29 Apr 2004 14:00:52 -0000 1.17 *************** *** 240,244 **** Column col = new Column( model.Type, count++ ); BindColumn(subnode, col, isNullable); ! col.Name = (subnode.Attributes["name"]==null) ? "" : subnode.Attributes["name"].Value; if (table!=null) table.AddColumn(col); //table=null -> an association, fill it in later model.AddColumn(col); --- 240,244 ---- Column col = new Column( model.Type, count++ ); BindColumn(subnode, col, isNullable); ! col.Name = (subnode.Attributes["name"]==null) ? string.Empty : subnode.Attributes["name"].Value; if (table!=null) table.AddColumn(col); //table=null -> an association, fill it in later model.AddColumn(col); *************** *** 440,444 **** try { ! model.Type = (EntityType) NHibernate.Association( ReflectHelper.ClassForName( node.Attributes["class"].Value) ); } --- 440,444 ---- try { ! model.Type = (EntityType) NHibernate.Entity( ReflectHelper.ClassForName( node.Attributes["class"].Value) ); } |