public IPhishDatabase Get()
        {
            if (_database == null)
            {
                DataLoadOptions options = new DataLoadOptions();

                //options.LoadWith<Tour>(tour => tour.Shows);

                //options.LoadWith<Show>(show => show.Sets);

                //options.LoadWith<Set>(set => set.SetSongs);
                //options.LoadWith<Set>(set => set.Show);

                //options.LoadWith<SetSong>(setSong => setSong.Song);
                //options.LoadWith<SetSong>(setSong => setSong.Set);
                

                //options.LoadWith<Song>(song => song.set

                _database = new PhishDatabase(_connectionString) 
                    { 
                        LoadOptions = options, 
                        DeferredLoadingEnabled = true, 
                        Log = (_logWriter == null ? null : _logWriter.Get()) 
                    };
            }

            return _database;
        }
Example #2
0
        public IPhishDatabase Get()
        {
            if (_database == null)
            {
                DataLoadOptions options = new DataLoadOptions();

                //options.LoadWith<Tour>(tour => tour.Shows);

                //options.LoadWith<Show>(show => show.Sets);

                //options.LoadWith<Set>(set => set.SetSongs);
                //options.LoadWith<Set>(set => set.Show);

                //options.LoadWith<SetSong>(setSong => setSong.Song);
                //options.LoadWith<SetSong>(setSong => setSong.Set);


                //options.LoadWith<Song>(song => song.set

                _database = new PhishDatabase(_connectionString)
                {
                    LoadOptions            = options,
                    DeferredLoadingEnabled = true,
                    Log = (_logWriter == null ? null : _logWriter.Get())
                };
            }

            return(_database);
        }
 public PhotoRepository(IPhishDatabase database) : base(database)
 {
 }
Example #4
0
 public AnalysisRepository(IPhishDatabase database) : base(database)
 {
 }
Example #5
0
 public MyShowTicketStubRepository(IPhishDatabase database) : base(database)
 {
 }
Example #6
0
 public GuessWholeShowRepository(IPhishDatabase database) : base(database)
 {
 }
 public VideoRepository(IPhishDatabase database) : base(database)
 {
 }
 public TopicRepository(IPhishDatabase database) : base(database)
 {
 }
 public TicketStubRepository(IPhishDatabase database, IShowRepository showRepo) : base(database)
 {
     _showRepo = showRepo;
 }
 public PosterRepository(IPhishDatabase database, IShowRepository showRepo) : base(database)
 {
     _showRepo = showRepo;
 }
 public PhishMarketUserRepository(IPhishDatabase database) : base(database)
 {
 }
Example #12
0
 public MyShowPosterRepository(IPhishDatabase database) : base(database)
 {
 }
 public ProfileRepository(IPhishDatabase database) : base(database)
 {
 }
Example #14
0
 public UnitOfWork(IPhishDatabase database)
 {
     Checks.Argument.IsNotNull(database, "database");
     _database = database;
 }
 public SetSongRepository(IPhishDatabase database) : base(database)
 {
 }
Example #16
0
 public UnitOfWork(IPhishDatabase database)
 {
     Checks.Argument.IsNotNull(database, "database");
     _database = database;
 }
Example #17
0
 public WantedListRepository(IPhishDatabase database) : base(database)
 {
 }
 public AlbumRepository(IPhishDatabase database) : base(database)
 {
 }
 public FavoriteVersionRepository(IPhishDatabase database) : base(database)
 {
 }
 public MyShowArtRepository(IPhishDatabase database) : base(database)
 {
 }
Example #21
0
 public PostRepository(IPhishDatabase database) : base(database)
 {
 }
Example #22
0
 public ShowRepository(IPhishDatabase database) : base(database)
 {
 }
Example #23
0
        protected BaseRepository(IPhishDatabase database)
        {
            Checks.Argument.IsNotNull(database, "database");

            _database = database;
        }