Replaced postgres with memory store, updated deps

This commit is contained in:
2018-02-17 15:34:59 -05:00
parent ebe2205e5d
commit b44eedfc2a
6 changed files with 16 additions and 267 deletions

View File

@ -20,7 +20,7 @@ namespace YTManager.Tasks
// Get all the channels to update.
var ops = new DbContextOptionsBuilder<MediaDB>();
ops.UseNpgsql(YTManager.Startup.dbstr);
ops.UseInMemoryDatabase(databaseName: "testdb");
using (var dbcontext = new MediaDB(ops.Options)) {
// Get all the potential relevant channels.
List<Models.Channel> channels;