Ejemplo n.º 1
0
 public UnitOfWork(MediaPlayerContext context, IRepository <AlbumEntity> albums,
                   IRepository <ArtistEntity> artists, IRepository <BandEntity> bands,
                   IRepository <TrackEntity> tracks)
 {
     this.context     = context;
     AlbumRepository  = albums;
     ArtistRepository = artists;
     BandRepository   = bands;
     TrackRepository  = tracks;
 }
Ejemplo n.º 2
0
 public Repository(MediaPlayerContext context)
 {
     contextDbSet = context.Set <TEntity>();
     this.context = context;
 }
Ejemplo n.º 3
0
 public MediaController(MediaPlayerContext context, IStorageService mediaStorage)
 {
     _context      = context;
     _mediaStorage = mediaStorage;
 }