Włącz asnotracking w rdzeniu ASP.NET na poziomie globalnym
If you have additional settings (e.g. connection string), then the DbContextOptions helps.
For example:
var dbContextOptionsBuilder = new DbContextOptionsBuilder<BloggingContext>()
.UseSqlServer("SQL connection to Blogging database").
UseQueryTrackingBehavior(QueryTrackingBehavior.NoTracking);
Karan Najwani