csharp using VelocityDb; using VelocityDb.Collection.BTree; using VelocityDb.Session; using VelocityGraph; class Program { static void Main() { using (SessionNoServer session = new SessionNoServer("path/to/database")) { BTreeMap<int, string> map = new BTreeMap<int, string>(); map.Add(1, "hello"); map.Add(2, "world"); session.Persist(map); BTreeMap<int, string> loadedMap = session.Open<BTreeMap<int, string>>(); foreach (var item in loadedMap) { Console.WriteLine(item.Key + ": " + item.Value); } } } }


上一篇:
下一篇:
切换中文