Now using single string for DB conns
This commit is contained in:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user