Пример #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="snapshot"></param>
        /// <returns></returns>
        public override ICollection GetOrphans(object snapshot)
        {
            IDictionary sn     = ( IDictionary )snapshot;
            ArrayList   result = new ArrayList(sn.Values.Count);

            result.AddRange(sn.Values);
            PersistentCollection.IdentityRemoveAll(result, map.Values, Session);
            return(result);
        }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="snapshot"></param>
        /// <returns></returns>
        public override ICollection GetOrphans(object snapshot)
        {
            IList     sn     = ( IList )snapshot;
            ArrayList result = new ArrayList(sn.Count);

            result.AddRange(sn);
            PersistentCollection.IdentityRemoveAll(result, list, Session);
            return(result);
        }