Beispiel #1
0
 public CrudControllerBase(
     PlayServiceContext context,
     DbSet <TEntity> entityDbSet)
 {
     _entityContext = entityDbSet;
     _context       = context;
 }
Beispiel #2
0
 // Dependecy injection of PlayServiceContext
 public AlbumsController(PlayServiceContext context)
     : base(context, context.Albums)
 {
 }
Beispiel #3
0
 // Dependecy injection of PlayServiceContext
 public SongsController(PlayServiceContext context)
     : base(context, context.Songs)
 {
 }
 // Dependecy injection of PlayServiceContext
 public GenresController(PlayServiceContext context)
     : base(context, context.Genres)
 {
 }
 // Dependecy injection of PlayServiceContext
 public PlaylistsController(PlayServiceContext context)
     : base(context, context.Playlists)
 {
 }
 // Dependecy injection of PlayServiceContext
 public ArtistsController(PlayServiceContext context)
     : base(context, context.Artists)
 {
 }