Ejemplo n.º 1
0
        public override ICollection GetOrphans(object snapshot)
        {
            /*
             * IDictionary sn = ( IDictionary ) GetSnapshot();
             * ArrayList result = new ArrayList();
             * result.AddRange( sn.Values );
             * PersistentCollection.IdentityRemoveAll( result, values, session );
             * return result;
             */

            return(PersistentCollection.GetOrphans((( IDictionary )snapshot).Values, values, Session));
        }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="snapshot"></param>
        /// <returns></returns>
        public override ICollection GetOrphans(object snapshot)
        {
            /*
             * IDictionary sn = ( IDictionary ) snapshot;
             * ArrayList result = new ArrayList( sn.Keys.Count );
             * result.AddRange( sn.Keys );
             * PersistentCollection.IdentityRemoveAll( result, internalSet, Session );
             * return result;
             */
            IDictionary sn = ( IDictionary )snapshot;

            return(PersistentCollection.GetOrphans(sn.Keys, internalSet, Session));
        }
		public ICollection GetOrphans( PersistentCollection coll )
		{
			CollectionEntry ce = GetCollectionEntry( coll );
			return ce.IsNew ? EmptyCollection : coll.GetOrphans( ce.Snapshot );
		}