A second operation started on this context before a previous operation completed
A second operation started on this context before a previous operation completed
AddDbContext에 ServiceLifetime.Transient 옵션을 추가하면 가볍게 해결됩니다.
services.AddDbContext<ApplicationDbContext>(
options => options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")
, options => options.EnableRetryOnFailure()), ServiceLifetime.Transient);
Comments
Comments are closed