private static void StoreTestData(IObjectContainer container) { for (int i = 0; i < NumberOfItems; i++) { Item item = new Item(i); container.Store(ObjectHolder.Create(item)); container.Store( CollectionHolder.Create( item, new Item(NumberOfItems + i), new Item(2 * NumberOfItems + i))); } }
private void StoreTestData(IObjectContainer container) { for (int i = 0; i < NumberOfItems; i++) { var item = new Item(i); container.Store(ItemHolder.Create(item)); container.Store(GenericHolder.Create(item)); container.Store( CollectionHolder.Create( item, new Item(NumberOfItems + i), new Item(2 * NumberOfItems + i))); } container.Commit(); }