Réussi! - échec : 0, réussite : 2, ignorée(s) : 0, total : 2, durée : 444 ms

This commit is contained in:
Paul Schneider
2021-05-09 14:56:32 +01:00
parent 6a59f776d5
commit ffb7cad00a
15 changed files with 181 additions and 33 deletions

View File

@ -72,20 +72,7 @@ namespace nuget_host
{
app.UseExceptionHandler("/Home/Error");
app.UseHsts();
try
{
dbContext.Database.Migrate();
}
catch (TargetInvocationException ex)
{
if (ex.InnerException is InvalidOperationException)
// nothing to do ?
{
// TODO (or not) Hit the developper
}
else throw ex;
}
dbContext.Database.Migrate();
}
app.UseStaticFiles();