Esempio n. 1
0
        public virtual void TestLongIntCriteriaQuery()
		{
            string baseName = GetBaseName();
			NeoDatis.Odb.ODB odb = Open(baseName);
			ClassWithLong cwl = new ClassWithLong(1L, "test");
			odb.Store(cwl);
			odb.Close();
			odb = Open(baseName);
			Objects<ClassWithLong> os = odb.GetObjects<ClassWithLong>(new CriteriaQuery(Where.Equal("i", 1L)));
			AssertEquals(1, os.Count);
			odb.Close();
		}
Esempio n. 2
0
        public virtual void TestLongIntCriteriaQuery()
        {
            string baseName = GetBaseName();

            NeoDatis.Odb.ODB odb = Open(baseName);
            ClassWithLong    cwl = new ClassWithLong(1L, "test");

            odb.Store(cwl);
            odb.Close();
            odb = Open(baseName);
            Objects <ClassWithLong> os = odb.GetObjects <ClassWithLong>(new CriteriaQuery(Where.Equal("i", 1L)));

            AssertEquals(1, os.Count);
            odb.Close();
        }