Включить аснотрирование в Core ASP.NET на глобальном уровне

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