From: Michael D. <mik...@us...> - 2004-06-25 20:44:48
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23570/NHibernate Modified Files: LockMode.cs Log Message: Modifed to help find a bug with LockModes in the test QueryLockMode - have not found yet. Index: LockMode.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/LockMode.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** LockMode.cs 16 Mar 2004 18:23:14 -0000 1.2 --- LockMode.cs 25 Jun 2004 20:44:39 -0000 1.3 *************** *** 28,32 **** /// </summary> public bool GreaterThan(LockMode mode) { - if (mode == null) { return true; } // TODO: should be removed when LockMode is completed return level > mode.level; } --- 28,31 ---- *************** *** 35,39 **** /// </summary> public bool LessThan(LockMode mode) { - if (mode == null) { return false; } // TODO: should be removed when LockMode is completed return level < mode.level; } --- 34,37 ---- *************** *** 72,76 **** /// The semantics of this lock mode, once obtained, are the same as <c>Upgrade</c> /// </remarks> ! public static LockMode UpgradeNoWait = new LockMode(10, "UpdadeNoWait"); /// <summary> --- 70,74 ---- /// The semantics of this lock mode, once obtained, are the same as <c>Upgrade</c> /// </remarks> ! public static LockMode UpgradeNoWait = new LockMode(10, "UpgradeNoWait"); /// <summary> *************** *** 82,85 **** --- 80,85 ---- public static LockMode Write = new LockMode(10, "Write"); + //TODO: need to implement .NET equivalent of readResolve - believe it is + // the IObjectReference interface... } |