public BeekDataAccess() { string beekPath = IOHelper.MakeAbsolute(ConfigurationManager.AppSettings["beekRepository.path.db4o"]); string userPath = IOHelper.MakeAbsolute(ConfigurationManager.AppSettings["userRepository.path.db4o"]); if (!File.Exists(beekPath)) { new FileInfo(beekPath).Directory.Create(); } if (!File.Exists(userPath)) { new FileInfo(userPath).Directory.Create(); } beekServer = beekServer ?? Db4oClientServer.OpenServer(beekPath, 0); userServer = beekServer ?? Db4oClientServer.OpenServer(userPath, 0); beekRepos = new Db4oBeekRepository(beekServer); userRepository = new Db4oUserRepository(userServer); }
public BeekController(IBeekRepository beekRepository) { this.beekRepository = beekRepository; }
public GenreFactory(IBeekRepository beekRepository) { repository = beekRepository; }
public SearchService(IBeekRepository beekRepository, IUserRepository userRepository) { this.beekRepository = beekRepository; this.userRepository = userRepository; }