예제 #1
0
        public virtual void TestIntLongCriteriaQuery()
        {
            var baseName = GetBaseName();

            var odb = Open(baseName);
            var cwi = new ClassWithInt(1, "test");
            odb.Store(cwi);
            odb.Close();
            odb = Open(baseName);
            var query = odb.Query<ClassWithInt>();
            query.Descend("i").Constrain((object) ((long) 1)).Equal();
            var os = query.Execute<ClassWithInt>();
            AssertEquals(1, os.Count);
            odb.Close();
        }
예제 #2
0
        public virtual void TestIntLongCriteriaQuery()
        {
            var baseName = GetBaseName();

            var odb = Open(baseName);
            var cwi = new ClassWithInt(1, "test");

            odb.Store(cwi);
            odb.Close();
            odb = Open(baseName);
            var query = odb.Query <ClassWithInt>();

            query.Descend("i").Constrain((object)((long)1)).Equal();
            var os = query.Execute <ClassWithInt>();

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