diff options
author | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-04 12:01:41 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-04 12:01:41 +0000 |
commit | 1712fb2f40c2ed12cea3041d19862aa70f351035 (patch) | |
tree | 52902359476bb888e5c06a9f856f2180256e6494 /Database/Database.cs | |
parent | 7260566b63680a6b18f51c27469c9156843d093a (diff) | |
download | newsaggregator-1712fb2f40c2ed12cea3041d19862aa70f351035.tar.gz newsaggregator-1712fb2f40c2ed12cea3041d19862aa70f351035.tar.bz2 newsaggregator-1712fb2f40c2ed12cea3041d19862aa70f351035.zip |
Need to find a way to handle database configuration without exposing it
Diffstat (limited to 'Database/Database.cs')
-rw-r--r-- | Database/Database.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Database/Database.cs b/Database/Database.cs index 414162f..f687efd 100644 --- a/Database/Database.cs +++ b/Database/Database.cs @@ -7,5 +7,9 @@ namespace Database { public class Database: DbContext {
public DbSet<Article> Articles;
public DbSet<Config> Configs;
+
+ protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {
+ // optionsBuilder.UseMySQL("server=localhost;uid")
+ }
}
}
|