How to implement database connection resiliency in ASP.NET Core
Take advantage of connection resiliency in EF Core to detect errors and retry commands and enable your ASP.NET Core application to overcome transient faults.
Dbconnectservice Customdbcontext Onconfiguring Dbcontextoptionsbuilder Customcontext Dbcontextoptions Onmodelcreating Modelbuilder Services Adddbcontext Entity Framework
Source: infoworld.com