Skip to content

Commit

Permalink
added EnableRetryOnFailure
Browse files Browse the repository at this point in the history
  • Loading branch information
ezraroi committed May 21, 2024
1 parent 5a9159f commit c265f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mundialito/DAL/MundialitoDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected override void OnConfiguring(DbContextOptionsBuilder options) {
if (appConfig.GetSection("App").GetValue("UseSqlLite", false)){
options.UseSqlite(appConfig.GetConnectionString("App"));
} else {
options.UseSqlServer(appConfig.GetConnectionString("App"));
options.UseSqlServer(appConfig.GetConnectionString("App"), b => b.EnableRetryOnFailure());
}

}
Expand Down

0 comments on commit c265f60

Please sign in to comment.