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 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) { }
public AnalysisRepository(IPhishDatabase database) : base(database) { }
public MyShowTicketStubRepository(IPhishDatabase database) : base(database) { }
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) { }
public MyShowPosterRepository(IPhishDatabase database) : base(database) { }
public ProfileRepository(IPhishDatabase database) : base(database) { }
public UnitOfWork(IPhishDatabase database) { Checks.Argument.IsNotNull(database, "database"); _database = database; }
public SetSongRepository(IPhishDatabase database) : base(database) { }
public WantedListRepository(IPhishDatabase database) : base(database) { }
public AlbumRepository(IPhishDatabase database) : base(database) { }
public FavoriteVersionRepository(IPhishDatabase database) : base(database) { }
public MyShowArtRepository(IPhishDatabase database) : base(database) { }
public PostRepository(IPhishDatabase database) : base(database) { }
public ShowRepository(IPhishDatabase database) : base(database) { }
protected BaseRepository(IPhishDatabase database) { Checks.Argument.IsNotNull(database, "database"); _database = database; }