I added NuGet for lazy loading as follows:
builder.Services.AddDbContext<OyunPalasDbContext>(
options => options.UseLazyLoadingProxies().UseSqlServer("name=ConnectionStrings:OyunPalasDbContext"));
But getting this error now:
Cannot insert explicit value for identity column in table 'Coupons' when IDENTITY_INSERT is set to OFF.
it shouldn't be this hard to upgrade.