public void AfterAction(IPersistentCollection collection)
        {
            loadedKey = CurrentKey;
            SetLoadedPersister(CurrentPersister);

            bool resnapshot = collection.WasInitialized && (IsDoremove || IsDorecreate || IsDoupdate);

            if (resnapshot)
            {
                //re-snapshot
                snapshot = loadedPersister == null || !loadedPersister.IsMutable ? null : collection.GetSnapshot(loadedPersister);
            }

            collection.PostAction();
        }
Beispiel #2
0
		public void AfterAction(IPersistentCollection collection)
		{
			loadedKey = CurrentKey;
			SetLoadedPersister(CurrentPersister);

			bool resnapshot = collection.WasInitialized && (IsDoremove || IsDorecreate || IsDoupdate);
			if (resnapshot)
			{
				//re-snapshot
				snapshot = loadedPersister == null || !loadedPersister.IsMutable ? null : collection.GetSnapshot(loadedPersister);
			}

			collection.PostAction();
		}