public static void IdentityRemoveAll(IList list, ICollection collection, ISessionImplementor session) { IEnumerator enumer = collection.GetEnumerator(); while (enumer.MoveNext()) { PersistentCollection.IdentityRemove(list, enumer.Current, session); } }
/// <summary> /// /// </summary> /// <param name="snapshot"></param> /// <returns></returns> public override ICollection GetOrphans(object snapshot) { object[] sn = ( object[] )snapshot; object[] arr = ( object[] )array; ArrayList result = new ArrayList(sn.Length); for (int i = 0; i < sn.Length; i++) { result.Add(sn[i]); } for (int i = 0; i < sn.Length; i++) { PersistentCollection.IdentityRemove(result, arr[i], Session); } return(result); }