public OSSongRepo(Data.SongDbContext context, IMemoryCache memoryCache, Microsoft.Extensions.Configuration.IConfiguration configuration) { _context = context; _memoryCache = memoryCache; _useCache = true; bool.TryParse(configuration.GetSection("AppBehavior")?["CacheSongs"], out _useCache); }
public RepoUnitOfWork(Data.SongDbContext dbContext) { _context = dbContext; }