Exemple #1
0
        public virtual void TestAndy1()
		{
			NeoDatis.Odb.ODB odb = Open("test-oid");
			NeoDatis.Odb.Test.Oid.B b1 = new NeoDatis.Odb.Test.Oid.B("b");
			NeoDatis.Odb.Test.Oid.A a1 = new NeoDatis.Odb.Test.Oid.A("a", b1);
			odb.Store(a1);
			NeoDatis.Odb.OID oida = odb.GetObjectId(a1);
			NeoDatis.Odb.OID oidb = odb.GetObjectId(b1);
			odb.Close();
			odb = Open("test-oid");
			NeoDatis.Odb.Test.Oid.A a2 = (NeoDatis.Odb.Test.Oid.A)odb.GetObjectFromId(oida);
			NeoDatis.Odb.Test.Oid.B b2 = (NeoDatis.Odb.Test.Oid.B)odb.GetObjectFromId(oidb);
			odb.Close();
			AssertNotNull(a2);
			AssertNotNull(b2);
			AssertNotNull(a2.GetB());
		}
Exemple #2
0
 public virtual void TestAndy1()
 {
     NeoDatis.Odb.ODB        odb = Open("test-oid");
     NeoDatis.Odb.Test.Oid.B b1  = new NeoDatis.Odb.Test.Oid.B("b");
     NeoDatis.Odb.Test.Oid.A a1  = new NeoDatis.Odb.Test.Oid.A("a", b1);
     odb.Store(a1);
     NeoDatis.Odb.OID oida = odb.GetObjectId(a1);
     NeoDatis.Odb.OID oidb = odb.GetObjectId(b1);
     odb.Close();
     odb = Open("test-oid");
     NeoDatis.Odb.Test.Oid.A a2 = (NeoDatis.Odb.Test.Oid.A)odb.GetObjectFromId(oida);
     NeoDatis.Odb.Test.Oid.B b2 = (NeoDatis.Odb.Test.Oid.B)odb.GetObjectFromId(oidb);
     odb.Close();
     AssertNotNull(a2);
     AssertNotNull(b2);
     AssertNotNull(a2.GetB());
 }
Exemple #3
0
        public virtual void TestAndy2()
		{
			// LogUtil.allOn(true);
			NeoDatis.Odb.ODB odb = Open("test-oid");
			NeoDatis.Odb.Test.Oid.B b1 = new NeoDatis.Odb.Test.Oid.B("b");
			NeoDatis.Odb.Test.Oid.A a1 = new NeoDatis.Odb.Test.Oid.A("a", b1);
			odb.Store(a1);
			long oida = ((NeoDatis.Odb.OID)odb.GetObjectId(a1)).GetObjectId();
			long oidb = ((NeoDatis.Odb.OID)odb.GetObjectId(b1)).GetObjectId();
			odb.Close();
			odb = Open("test-oid");
			NeoDatis.Odb.Test.Oid.A a2 = (NeoDatis.Odb.Test.Oid.A)odb.GetObjectFromId(new NeoDatis.Odb.Impl.Core.Oid.OdbObjectOID
				(oida));
			NeoDatis.Odb.Test.Oid.B b2 = (NeoDatis.Odb.Test.Oid.B)odb.GetObjectFromId(new NeoDatis.Odb.Impl.Core.Oid.OdbObjectOID
				(oidb));
			odb.Close();
			AssertNotNull(a2);
			AssertNotNull(b2);
			AssertNotNull(a2.GetB());
		}
Exemple #4
0
        public virtual void TestAndy2()
        {
            // LogUtil.allOn(true);
            NeoDatis.Odb.ODB        odb = Open("test-oid");
            NeoDatis.Odb.Test.Oid.B b1  = new NeoDatis.Odb.Test.Oid.B("b");
            NeoDatis.Odb.Test.Oid.A a1  = new NeoDatis.Odb.Test.Oid.A("a", b1);
            odb.Store(a1);
            long oida = ((NeoDatis.Odb.OID)odb.GetObjectId(a1)).GetObjectId();
            long oidb = ((NeoDatis.Odb.OID)odb.GetObjectId(b1)).GetObjectId();

            odb.Close();
            odb = Open("test-oid");
            NeoDatis.Odb.Test.Oid.A a2 = (NeoDatis.Odb.Test.Oid.A)odb.GetObjectFromId(new NeoDatis.Odb.Impl.Core.Oid.OdbObjectOID
                                                                                          (oida));
            NeoDatis.Odb.Test.Oid.B b2 = (NeoDatis.Odb.Test.Oid.B)odb.GetObjectFromId(new NeoDatis.Odb.Impl.Core.Oid.OdbObjectOID
                                                                                          (oidb));
            odb.Close();
            AssertNotNull(a2);
            AssertNotNull(b2);
            AssertNotNull(a2.GetB());
        }
Exemple #5
0
 public A(string name, NeoDatis.Odb.Test.Oid.B b) : base()
 {
     this.name = name;
     this.b    = b;
 }
Exemple #6
0
		public A(string name, NeoDatis.Odb.Test.Oid.B b) : base()
		{
			this.name = name;
			this.b = b;
		}