コード例 #1
0
ファイル: TestTransient.cs プロジェクト: ekicyou/pasta
        public virtual void Test1()
		{
			string baseName = GetBaseName();
			NeoDatis.Odb.ODB odb = Open(baseName);
			NeoDatis.Odb.Test.Transient_attributes.VoWithTransientAttribute vo = new NeoDatis.Odb.Test.Transient_attributes.VoWithTransientAttribute
				("vo1");
			odb.Store(vo);
			odb.Close();
			odb = Open(baseName);
			NeoDatis.Odb.Objects<VoWithTransientAttribute> vos = odb.GetObjects<VoWithTransientAttribute>();
			odb.Close();
			Println(vos.GetFirst().GetName());
			AssertEquals(1, vos.Count);
			AssertEquals("vo1", vos.GetFirst().GetName());
		}
コード例 #2
0
        public virtual void Test1()
        {
            string baseName = GetBaseName();

            NeoDatis.Odb.ODB odb = Open(baseName);
            NeoDatis.Odb.Test.Transient_attributes.VoWithTransientAttribute vo = new NeoDatis.Odb.Test.Transient_attributes.VoWithTransientAttribute
                                                                                     ("vo1");
            odb.Store(vo);
            odb.Close();
            odb = Open(baseName);
            NeoDatis.Odb.Objects <VoWithTransientAttribute> vos = odb.GetObjects <VoWithTransientAttribute>();
            odb.Close();
            Println(vos.GetFirst().GetName());
            AssertEquals(1, vos.Count);
            AssertEquals("vo1", vos.GetFirst().GetName());
        }