示例#1
0
		/// <exception cref="System.Exception"></exception>
		protected override void Store()
		{
			QueryByInterface.Ferrari f430 = new QueryByInterface.Ferrari("F430");
			QueryByInterface.Ferrari f450 = new QueryByInterface.Ferrari("F450");
			Store(f430);
			Store(f450);
			QueryByInterface.Bmw serie5 = new QueryByInterface.Bmw("Serie 5");
			QueryByInterface.Bmw serie7 = new QueryByInterface.Bmw("Serie 7");
			Store(serie5);
			Store(serie7);
		}
示例#2
0
 /// <exception cref="System.Exception"></exception>
 protected override void Store()
 {
     QueryByInterface.Ferrari f430 = new QueryByInterface.Ferrari("F430");
     QueryByInterface.Ferrari f450 = new QueryByInterface.Ferrari("F450");
     Store(f430);
     Store(f450);
     QueryByInterface.Bmw serie5 = new QueryByInterface.Bmw("Serie 5");
     QueryByInterface.Bmw serie7 = new QueryByInterface.Bmw("Serie 7");
     Store(serie5);
     Store(serie7);
 }
示例#3
0
        public virtual void Test()
        {
            IQuery q = NewQuery();

            q.Constrain(typeof(QueryByInterface.ICar));
            q.Descend("name").Constrain("F450");
            IObjectSet result = q.Execute();

            Assert.AreEqual(1, result.Count);
            QueryByInterface.Ferrari car = (QueryByInterface.Ferrari)result.Next();
            Assert.AreEqual("F450", car.name);
        }