private void PopulateContainer(IEmbeddedConfiguration config) { config.File.Storage = _storage; IObjectContainer container = Db4oEmbedded.OpenFile(config, DbUri); try { var pilot = new Pilot ("Barrichello"); pilot.GetCars().Add(new Car("BMW")); container.Store(pilot); } finally { container.Close(); } }