コード例 #1
0
		/// <exception cref="System.IO.IOException"></exception>
		private void CreateDatabase(IList gaps)
		{
			Delete(TempFile());
			IEmbeddedConfiguration config = NewConfiguration();
			IEmbeddedObjectContainer db = Db4oEmbedded.OpenFile(config, TempFile());
			IList list = new ArrayList();
			list.Add(new FileUsageStatsTestCase.Child());
			FileUsageStatsTestCase.Item item = new FileUsageStatsTestCase.Item(0, "#0", list);
			db.Store(item);
			db.Commit();
			db.Close();
		}
コード例 #2
0
        /// <exception cref="System.IO.IOException"></exception>
        private void CreateDatabase(IList gaps)
        {
            Delete(TempFile());
            IEmbeddedConfiguration   config = NewConfiguration();
            IEmbeddedObjectContainer db     = Db4oEmbedded.OpenFile(config, TempFile());
            IList list = new ArrayList();

            list.Add(new FileUsageStatsTestCase.Child());
            FileUsageStatsTestCase.Item item = new FileUsageStatsTestCase.Item(0, "#0", list);
            db.Store(item);
            db.Commit();
            db.Close();
        }