From 743e8623e635c9b67a8eab0fa787aca4de8c0a07 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 8 Feb 2019 11:28:23 +0000 Subject: Added a base definition as well --- Database/Database.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Database') diff --git a/Database/Database.cs b/Database/Database.cs index 466c304..551ca5d 100644 --- a/Database/Database.cs +++ b/Database/Database.cs @@ -19,7 +19,8 @@ namespace Database { public Dictionary Details; protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { - optionsBuilder.UseMySQL($"server=localhost;uid={Details["username"]};password={Details["password"]};database=news_aggregator"); + base.OnConfiguring(optionsBuilder); + optionsBuilder.UseMySQL($"server=localhost;port=3306;user={Details["username"]};password={Details["password"]};database={Details["database"]}"); } } } -- cgit v1.2.3-13-gbd6f