public MigrationRepository(MusicPlayerContext dbContext, IBackgroundTaskQueue backgroundTaskQueue, IServiceScopeFactory scopeFactory, IDataStore gDdataStore, IWebHostEnvironment env) { _dbContext = dbContext; _backgroundTaskQueue = backgroundTaskQueue; _serviceScopeFactory = scopeFactory; _GDdataStore = gDdataStore; _env = env; }
public DataService(IConfiguration configuration) { var dbContextOptions = new DbContextOptionsBuilder() .UseSqlServer(Environment.GetEnvironmentVariable("ConnectionStrings__MusicPlayerCN")) .Options; var musicPlayerContext = new MusicPlayerContext(dbContextOptions); _songInfoRepository = new SongInfoRepository(musicPlayerContext); _albumRepository = new AlbumRepository(musicPlayerContext); _songInfoGenericRepository = _songInfoRepository; }
public SongRepository(MusicPlayerContext context, IDataStore gDdataStore) { _dbContext = context; _GDdataStore = gDdataStore; }
public StorageRepository(MusicPlayerContext context) { _dbContext = context; }
public AuthRepository(MusicPlayerContext context, IConfiguration configuration) { _dbContext = context; _config = configuration; }
public PlaylistRepository(MusicPlayerContext context) { _dbContext = context; }
public GoogleDriveDataStore(MusicPlayerContext dbContext) { _dbContext = dbContext; }
public AccountRepository(MusicPlayerContext context) { _dbContext = context; }