From: Paul H. <pha...@us...> - 2005-03-28 15:21:16
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19681/nhibernate/src/NHibernate.DomainModel Modified Files: Up.cs Log Message: NH-237 - Allow for Null/Not Null discriminator Index: Up.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/Up.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Up.cs 28 Mar 2005 10:16:20 -0000 1.1 --- Up.cs 28 Mar 2005 15:20:27 -0000 1.2 *************** *** 30,33 **** --- 30,50 ---- } + /// <summary> + /// + /// </summary> + /// <param name="other"></param> + /// <returns></returns> + /// <remarks>This is important, otherwise the Identifier and Instance don't match inside SessionImpl</remarks> + public override bool Equals( object other ) + { + if ( !(other is Up) ) + { + return false; + } + Up that = other as Up; + + return this.id1.Equals( that.id1 ) && this.id2.Equals( that.id2 ); + } + public int GetHashcode() { |