コード例 #1
0
        public static ContentDatabaseSession CreateDatabase(string path, int pageSize = 512)
        {
            //Open file
            DatabaseFile file = DatabaseFile.CreateFile(path, pageSize);

            //Open DB
            var db = new ContentDatabaseSession(file);

            //Save TOC and NameTable
            db.UpdateToc();
            db.UpdateNameTable();

            return(db);
        }