The root cause:
The SQL database has the Auto Close property on the Parameters tab, the default is TRUE.
Azure Service (API) SQL-. Azure .
"Auto Close as TRUE", SQL . Azure , SQL. " - 19".
:
SQL db . "" " " "" .
, Azure , , .
.
. ( ).
RETRY LOGIC Entity Framework 1.1.0
services.AddDbContext<DbContext>(options => options.UseSqlServer('yourconnectionstring',
sqlServerOptionsAction: sqlOptions =>
{
sqlOptions.EnableRetryOnFailure(
maxRetryCount: 5,
maxRetryDelay: TimeSpan.FromSeconds(30),
errorNumbersToAdd: new List<int>() { 19 });
}));
19 . 19, 19.