diff options
author | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-08 11:28:23 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-08 11:28:23 +0000 |
commit | 743e8623e635c9b67a8eab0fa787aca4de8c0a07 (patch) | |
tree | b7715ca0e9a6e84e455d3bad996bdb2c8742a66e /Database | |
parent | 62b367ae8451103c8af69e6ae5ee14e633b19dfa (diff) | |
download | newsaggregator-743e8623e635c9b67a8eab0fa787aca4de8c0a07.tar.gz newsaggregator-743e8623e635c9b67a8eab0fa787aca4de8c0a07.tar.bz2 newsaggregator-743e8623e635c9b67a8eab0fa787aca4de8c0a07.zip |
Added a base definition as well
Diffstat (limited to 'Database')
-rw-r--r-- | Database/Database.cs | 3 |
1 files changed, 2 insertions, 1 deletions
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<string, string> 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"]}");
}
}
}
|