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;
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public PhotoRepository(IPhishDatabase database) : base(database)
 {
 }
Exemplo n.º 4
0
 public AnalysisRepository(IPhishDatabase database) : base(database)
 {
 }
Exemplo n.º 5
0
 public MyShowTicketStubRepository(IPhishDatabase database) : base(database)
 {
 }
Exemplo n.º 6
0
 public GuessWholeShowRepository(IPhishDatabase database) : base(database)
 {
 }
Exemplo n.º 7
0
 public VideoRepository(IPhishDatabase database) : base(database)
 {
 }
Exemplo n.º 8
0
 public TopicRepository(IPhishDatabase database) : base(database)
 {
 }
 public TicketStubRepository(IPhishDatabase database, IShowRepository showRepo) : base(database)
 {
     _showRepo = showRepo;
 }
Exemplo n.º 10
0
 public PosterRepository(IPhishDatabase database, IShowRepository showRepo) : base(database)
 {
     _showRepo = showRepo;
 }
 public PhishMarketUserRepository(IPhishDatabase database) : base(database)
 {
 }
Exemplo n.º 12
0
 public MyShowPosterRepository(IPhishDatabase database) : base(database)
 {
 }
Exemplo n.º 13
0
 public ProfileRepository(IPhishDatabase database) : base(database)
 {
 }
Exemplo n.º 14
0
 public UnitOfWork(IPhishDatabase database)
 {
     Checks.Argument.IsNotNull(database, "database");
     _database = database;
 }
Exemplo n.º 15
0
 public SetSongRepository(IPhishDatabase database) : base(database)
 {
 }
Exemplo n.º 16
0
 public UnitOfWork(IPhishDatabase database)
 {
     Checks.Argument.IsNotNull(database, "database");
     _database = database;
 }
Exemplo n.º 17
0
 public WantedListRepository(IPhishDatabase database) : base(database)
 {
 }
Exemplo n.º 18
0
 public AlbumRepository(IPhishDatabase database) : base(database)
 {
 }
 public FavoriteVersionRepository(IPhishDatabase database) : base(database)
 {
 }
Exemplo n.º 20
0
 public MyShowArtRepository(IPhishDatabase database) : base(database)
 {
 }
Exemplo n.º 21
0
 public PostRepository(IPhishDatabase database) : base(database)
 {
 }
Exemplo n.º 22
0
 public ShowRepository(IPhishDatabase database) : base(database)
 {
 }
Exemplo n.º 23
0
        protected BaseRepository(IPhishDatabase database)
        {
            Checks.Argument.IsNotNull(database, "database");

            _database = database;
        }