From: Kevin W. <kev...@us...> - 2004-12-31 19:53:26
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12931 Modified Files: ScheduledCollectionRemove.cs Log Message: fixing xml comments and letting ReSharper do reformatting Index: ScheduledCollectionRemove.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl/ScheduledCollectionRemove.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ScheduledCollectionRemove.cs 29 Nov 2004 15:31:07 -0000 1.5 --- ScheduledCollectionRemove.cs 31 Dec 2004 19:53:11 -0000 1.6 *************** *** 1,7 **** - using System; using NHibernate.Collection; using NHibernate.Engine; ! namespace NHibernate.Impl { /// <summary> --- 1,6 ---- using NHibernate.Collection; using NHibernate.Engine; ! namespace NHibernate.Impl { /// <summary> *************** *** 11,18 **** /// This Collection is not represented in the database anymore. /// </remarks> ! internal sealed class ScheduledCollectionRemove : ScheduledCollectionAction { private bool _emptySnapshot; ! /// <summary> /// Initializes a new instance of <see cref="ScheduledCollectionRemove"/>. --- 10,17 ---- /// This Collection is not represented in the database anymore. /// </remarks> ! internal sealed class ScheduledCollectionRemove : ScheduledCollectionAction { private bool _emptySnapshot; ! /// <summary> /// Initializes a new instance of <see cref="ScheduledCollectionRemove"/>. *************** *** 22,38 **** /// <param name="emptySnapshot">Indicates if the Collection was empty when it was loaded.</param> /// <param name="session">The <see cref="ISessionImplementor"/> that the Action is occuring in.</param> ! public ScheduledCollectionRemove(CollectionPersister persister, object id, bool emptySnapshot, ISessionImplementor session) ! : base(persister, id, session) { _emptySnapshot = emptySnapshot; } ! public override void Execute() { Persister.Softlock( Id ); ! // if there were no entries in the snapshot of the collection then there // is nothing to remove so verify that the snapshot was not empty. ! if( !_emptySnapshot ) { Persister.Remove( Id, Session ); --- 21,38 ---- /// <param name="emptySnapshot">Indicates if the Collection was empty when it was loaded.</param> /// <param name="session">The <see cref="ISessionImplementor"/> that the Action is occuring in.</param> ! public ScheduledCollectionRemove( CollectionPersister persister, object id, bool emptySnapshot, ISessionImplementor session ) ! : base( persister, id, session ) { _emptySnapshot = emptySnapshot; } ! /// <summary></summary> ! public override void Execute() { Persister.Softlock( Id ); ! // if there were no entries in the snapshot of the collection then there // is nothing to remove so verify that the snapshot was not empty. ! if( !_emptySnapshot ) { Persister.Remove( Id, Session ); *************** *** 40,42 **** } } ! } --- 40,42 ---- } } ! } \ No newline at end of file |