Exemplo n.º 1
0
        public virtual void TestIntLongCriteriaQuery()
		{
            string baseName = GetBaseName();
			
			NeoDatis.Odb.ODB odb = Open(baseName);
			ClassWithInt cwi = new ClassWithInt(1, "test");
			odb.Store(cwi);
			odb.Close();
			odb = Open(baseName);
			NeoDatis.Odb.Objects<ClassWithInt> os = odb.GetObjects<ClassWithInt>(new CriteriaQuery(Where.Equal("i", (long)1)));
			AssertEquals(1, os.Count);
			odb.Close();
		}
Exemplo n.º 2
0
        public virtual void TestIntLongCriteriaQuery()
        {
            string baseName = GetBaseName();

            NeoDatis.Odb.ODB odb = Open(baseName);
            ClassWithInt     cwi = new ClassWithInt(1, "test");

            odb.Store(cwi);
            odb.Close();
            odb = Open(baseName);
            NeoDatis.Odb.Objects <ClassWithInt> os = odb.GetObjects <ClassWithInt>(new CriteriaQuery(Where.Equal("i", (long)1)));
            AssertEquals(1, os.Count);
            odb.Close();
        }