Activer Asnotracking dans ASP.NET Core au niveau global

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