Beispiel #1
0
        /// <summary>
        /// Tries to get the max row id from the tree
        /// </summary>
        /// <returns>The max row id</returns>
        public int GetMaxRowId()
        {
            if (_tree.Count == 0)
            {
                return(0);
            }
            else
            {
                int maxPageId = _tree.FindMax().Key;

                Page maxPage;
                _tree.Find(ref maxPageId, out maxPage);
                return(maxPage.GetMaxRowId());
            }
        }