Ejemplo n.º 1
0
        public void Insert()
        {
            var builder = new DatabaseBuilder();

            builder.Append(MakeDoc());
            var saved = builder.Build();

            File.WriteAllBytes(_filename, saved);
            database = new MemoryDatabase(saved);
        }
Ejemplo n.º 2
0
        public void Insert()
        {
            var builder = new DatabaseBuilder();

            builder.Add("test", MakeDoc(), x => x.id);
            var saved = builder.Build().Save();

            File.WriteAllBytes(_filename, saved);
            memory = Database.Open(saved).GetMemory <int, TestDoc>("test", x => x.id);
        }