public UnitOfWork() { string line = System.IO.File.ReadAllLines("appsecrets.txt").Single(x => x.StartsWith("mysql ==")); DbAdapter = new MySqlDbAdapter(line.Split(" == ")[1]); }
public UnitOfWork(IConfiguration config) { DbAdapter = new MySqlDbAdapter(config.GetConnectionString("default")); }
public UnitOfWork(IOptions <ApplicationSecrets> appSecrets) { DbAdapter = new MySqlDbAdapter(appSecrets.Value.ConnectionString); }