Add DbConnectionString to config

This commit is contained in:
jvyden 2021-11-19 00:25:41 -05:00
parent 76aeb54da0
commit 177befde91
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
4 changed files with 5 additions and 14 deletions

View file

@ -30,7 +30,7 @@ namespace LBPUnion.ProjectLighthouse
public DbSet<RatedLevel> RatedLevels { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder options)
=> options.UseMySql(ServerStatics.DbConnectionString, MySqlServerVersion.LatestSupportedServerVersion);
=> options.UseMySql(ServerSettings.Instance.DbConnectionString, MySqlServerVersion.LatestSupportedServerVersion);
public async Task<User> CreateUser(string username)
{