Now using single string for DB conns

This commit is contained in:
2017-09-02 21:04:51 -04:00
parent ae782025f6
commit 6f326320cc
2 changed files with 6 additions and 5 deletions

View File

@ -22,8 +22,7 @@ namespace YTManager.Tasks
// Get all the channels to update.
var ops = new DbContextOptionsBuilder<MediaDB>();
string constr = "Host=home.hak8or.com;Database=postgres;Username=postgres;Password=mysecretpassword";
ops.UseNpgsql(constr);
ops.UseNpgsql(YTManager.Startup.dbstr);
using (var dbcontext = new MediaDB(ops.Options)) {
var channels = dbcontext.Channels.ToList();