Example #1
0
        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);
        }
Example #2
0
 public BeekController(IBeekRepository beekRepository)
 {
     this.beekRepository = beekRepository;
 }
Example #3
0
 public GenreFactory(IBeekRepository beekRepository)
 {
     repository = beekRepository;
 }
Example #4
0
 public SearchService(IBeekRepository beekRepository, IUserRepository userRepository)
 {
     this.beekRepository = beekRepository;
     this.userRepository = userRepository;
 }