public virtual void Test1() { DeleteBase("test-object-with-oid"); var odb = Open("test-object-with-oid"); var o = new ObjectWithOid("15", "test"); var oid = odb.Store(o); odb.Close(); odb = Open("test-object-with-oid"); var o2 = (ObjectWithOid) odb.GetObjectFromId(oid); odb.Close(); AssertEquals(o.GetOid(), o2.GetOid()); AssertEquals(o.GetName(), o2.GetName()); }
public virtual void Test1() { DeleteBase("test-object-with-oid"); var odb = Open("test-object-with-oid"); var o = new ObjectWithOid("15", "test"); var oid = odb.Store(o); odb.Close(); odb = Open("test-object-with-oid"); var o2 = (ObjectWithOid)odb.GetObjectFromId(oid); odb.Close(); AssertEquals(o.GetOid(), o2.GetOid()); AssertEquals(o.GetName(), o2.GetName()); }