/// <summary>
        /// Create new database - empty header with password
        /// </summary>
        public override void CreateNew()
        {
            var header = new HeaderPage();

            header.DbParams.Password = _password;
            this.WritePage(0, header.WritePage());
        }
Пример #2
0
 public static void Dump(this HeaderPage page, StringBuilder sb)
 {
     sb.AppendFormat("Change: {0}, FreeEmptyPageID: {1}, LastPageID: {2}",
                     page.ChangeID,
                     page.FreeEmptyPageID.Dump(),
                     page.LastPageID.Dump());
 }