Example #1
0
 public virtual void TestCriteriaWithDate()
 {
     var baseName = GetBaseName();
     var odb = Open(baseName);
     for (var i = 0; i < 10; i++)
     {
         var tc = new TestClass();
         tc.SetInt1(i);
         odb.Store(tc);
     }
     odb.Close();
     odb = Open(baseName);
     var query = odb.Query<TestClass>();
     query.Descend("int1").Constrain(0).Greater().Equal();
     var os = query.Execute<TestClass>();
     AssertEquals(10, os.Count);
     var j = 0;
     while (os.HasNext())
     {
         var tc = os.Next();
         AssertEquals(j, tc.GetInt1());
         j++;
     }
     odb.Close();
 }