Exemplo n.º 1
0
 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());
 }
Exemplo n.º 2
0
        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());
        }