예제 #1
0
 public virtual void TestPredefinedPrototype()
 {
     StoreAll(OccamAndZora());
     BasicQLinTestCase.Cat cat = ((BasicQLinTestCase.Cat)QLinSupport.Prototype(typeof(
                                                                                   BasicQLinTestCase.Cat)));
     IteratorAssert.SameContent(Occam(), Db().From(typeof(BasicQLinTestCase.Cat)).Where
                                    (cat.Name()).StartsWith("Occ").Select());
 }
예제 #2
0
        //		IteratorAssert.sameContent(occam(),
        //			db().from(Cat.class)
        //				.where(cat.name().equals("Occam"))
        //				.select());
        public virtual void TestUpdate()
        {
            StoreAll(OccamZoraAchatAcrobat());
            int newAge = 2;

            BasicQLinTestCase.Cat cat = ((BasicQLinTestCase.Cat)QLinSupport.Prototype(typeof(
                                                                                          BasicQLinTestCase.Cat)));
            //		db().from(Cat.class)
            //		   .where(cat.father()).equal("Occam")
            //		   .update(cat.age(newAge));
            IObjectSet updated = Db().From(typeof(BasicQLinTestCase.Cat)).Where(cat.Name()).Equal
                                     ("Occam").Select();
            IEnumerator i = updated.GetEnumerator();
        }