Ejemplo n.º 1
0
		public virtual void TestLongIntCriteriaQuery()
		{
			DeleteBase(BaseName);
			NeoDatis.Odb.ODB odb = Open(BaseName);
			NeoDatis.Odb.Test.Query.Criteria.ClassWithLong cwl = new NeoDatis.Odb.Test.Query.Criteria.ClassWithLong
				(1L, "test");
			odb.Store(cwl);
			odb.Close();
			odb = Open(BaseName);
			NeoDatis.Odb.Objects<ClassWithLong> os = odb.GetObjects<ClassWithLong>(new NeoDatis.Odb.Impl.Core.Query.Criteria.CriteriaQuery
				(NeoDatis.Odb.Core.Query.Criteria.Where
				.Equal("i", (int)1)));
			AssertEquals(1, os.Count);
			odb.Close();
		}
Ejemplo n.º 2
0
 public virtual void TestLongIntCriteriaQuery()
 {
     DeleteBase(BaseName);
     NeoDatis.Odb.ODB odb = Open(BaseName);
     NeoDatis.Odb.Test.Query.Criteria.ClassWithLong cwl = new NeoDatis.Odb.Test.Query.Criteria.ClassWithLong
                                                              (1L, "test");
     odb.Store(cwl);
     odb.Close();
     odb = Open(BaseName);
     NeoDatis.Odb.Objects <ClassWithLong> os = odb.GetObjects <ClassWithLong>(new NeoDatis.Odb.Impl.Core.Query.Criteria.CriteriaQuery
                                                                                  (NeoDatis.Odb.Core.Query.Criteria.Where
                                                                                  .Equal("i", (int)1)));
     AssertEquals(1, os.Count);
     odb.Close();
 }