Exemple #1
0
        public override bool Equals(PageSerializerBase <RowsetHolder, RowHolder> other, ITransaction tran)
        {
            if (this.pageId != other.PageId())
            {
                return(false);
            }

            if (this.MaxRowCount() != other.MaxRowCount())
            {
                return(false);
            }

            if (this.PrevPageId() != other.PrevPageId())
            {
                return(false);
            }

            if (this.NextPageId() != other.NextPageId())
            {
                return(false);
            }

            if (!Enumerable.SequenceEqual(this.Fetch(tran), other.Fetch(tran)))
            {
                return(false);
            }

            return(true);
        }
Exemple #2
0
 public abstract bool Equals([AllowNull] PageSerializerBase <S, ST> other, ITransaction tran);