public ComplexFieldIndexItem(int foo_, int bar_, Db4objects.Db4o.Tests.Common.Fieldindex.ComplexFieldIndexItem
                              child_)
 {
     foo   = foo_;
     bar   = bar_;
     child = child_;
 }
		public ComplexFieldIndexItem(int foo_, int bar_, Db4objects.Db4o.Tests.Common.Fieldindex.ComplexFieldIndexItem
			 child_)
		{
			foo = foo_;
			bar = bar_;
			child = child_;
		}
Exemple #3
0
        protected virtual void StoreComplexItems(int[] foos, int[] bars)
        {
            ComplexFieldIndexItem last = null;

            for (int i = 0; i < foos.Length; i++)
            {
                last = new ComplexFieldIndexItem(foos[i], bars[i], last);
                Store(last);
            }
        }
Exemple #4
0
        public virtual void TestIdentity()
        {
            IQuery query = CreateComplexItemQuery();

            query.Descend("foo").Constrain(3);
            ComplexFieldIndexItem item = (ComplexFieldIndexItem)query.Execute().Next();

            query = CreateComplexItemQuery();
            query.Descend("child").Constrain(item).Identity();
            AssertExpectedFoos(typeof(ComplexFieldIndexItem), new int[] { 4 }, query);
        }
 protected virtual void StoreComplexItems(int[] foos, int[] bars)
 {
     ComplexFieldIndexItem last = null;
     for (var i = 0; i < foos.Length; i++)
     {
         last = new ComplexFieldIndexItem(foos[i], bars[i], last);
         Store(last);
     }
 }