/// <exception cref="System.Exception"></exception> public virtual void TestList2() { DeleteBase("list1.neodatis"); NeoDatis.Odb.ODB odb = Open("list1.neodatis"); long nb = odb.Count(new NeoDatis.Odb.Impl.Core.Query.Criteria.CriteriaQuery(typeof( PlayerWithList))); PlayerWithList player = new PlayerWithList ("kiko"); player.SetGames(null); odb.Store(player); odb.Close(); NeoDatis.Odb.ODB odb2 = Open("list1.neodatis"); NeoDatis.Odb.Objects l = odb2.GetObjects <PlayerWithList>(true); AssertEquals(nb + 1, l.Count); odb2.Close(); DeleteBase("list1.neodatis"); }
public virtual void TestList2() { DeleteBase("list1.ndb"); var odb = Open("list1.ndb"); var nb = odb.Query <PlayerWithList>().Count(); var player = new PlayerWithList("kiko"); player.SetGames(null); odb.Store(player); odb.Close(); var odb2 = Open("list1.ndb"); var query = odb2.Query <PlayerWithList>(); var l = query.Execute <PlayerWithList>(true); AssertEquals(nb + 1, l.Count); odb2.Close(); DeleteBase("list1.ndb"); }