a environment name for the cx string
This commit is contained in:
parent
0ea23fd772
commit
d00a71e57a
6 changed files with 72 additions and 56 deletions
|
|
@ -71,7 +71,8 @@ namespace Yavsc.Models
|
|||
}
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
optionsBuilder.UseNpgsql((string) AppDomain.CurrentDomain.GetData("YAVSC_CONNECTION"));
|
||||
var appSetup = (string)AppDomain.CurrentDomain.GetData(Constants.YavscConnectionStringEnvName);
|
||||
if (appSetup!=null) optionsBuilder.UseNpgsql(appSetup);
|
||||
}
|
||||
|
||||
public DbSet<Client> Applications { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue