Ejemplo n.º 1
0
 private IQueryable <ArtistVM> FetchAndPopulateAll()
 {
     return(TModel
            .Include(artist => artist.AlbumArtist)
            .ThenInclude(aa => aa.Album)
            .Select(artist => populateArtist(artist)));
 }
Ejemplo n.º 2
0
 private IQueryable <SeriesVM> FetchAndPopulateAll()
 {
     return(TModel
            .Include(series => series.Albums)
            .ThenInclude(album => album.AlbumArtist)
            .ThenInclude(aa => aa.Artist)
            .Select(series => populateSeries(series)));
 }
Ejemplo n.º 3
0
 private IQueryable <AlbumVM> FetchAndPopulateAll()
 {
     return(TModel
            .Include(album => album.AlbumArtist)
            .ThenInclude(aa => aa.Artist)
            .Include(Album => Album.Songs)
            .ThenInclude(song => song.ArtistSong)
            .ThenInclude(artSong => artSong.Artist)
            .Select(album => populateAlbum(album)));
 }
Ejemplo n.º 4
0
 private IQueryable <SongVM> FetchAndPopulateAll()
 {
     return(TModel
            .Include(song => song.Album)
            .ThenInclude(album => album.AlbumArtist)
            .ThenInclude(aa => aa.Artist)
            .Include(song => song.ArtistSong)
            .ThenInclude(artist => artist.Artist)
            .Select(song => populateSong(song)));
 }