protected override void Store() { var dh1 = new DHolder1(); dh1._name = "root"; dh1.CreateDicts(); dh1.CreateLinkList(8); var dh2 = new DHolder2(); dh2.nDict1 = dh1.nDict1; dh2.nDict2 = dh1.nDict2; dh2.gDict1 = dh1.gDict1; dh2.gDict2 = dh1.gDict2; var dh1_2 = new DHolder1(); dh1_2.CreateDicts(); dh1_2._name = "update"; var dh3 = new DHolder3(); dh3._name = "identity"; dh3.CreateDicts(); Db().Store(dh1); Db().Store(dh2); Db().Store(dh1_2); Db().Store(dh3); }
public void TestUpdate() { DHolder1 updateHolder = QueryForNamedHolder("update"); updateHolder.UpdateDicts(); updateHolder.StoreDicts(Db()); }
public void CreateLinkList(int length) { if (length < 1) { return; } _next = new DHolder1(); _next._name = "Linked lHolder1 " + length; _next.CreateDicts(); _next.CreateLinkList(length - 1); }
public void TestQuery() { DHolder1 root = QueryForNamedHolder("root"); root.CheckDictsBeforeUpdate(); }