Closed rmantel23 closed 1 month ago
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { optionsBuilder.UseSqlServer(connectionString) .UseQueryTrackingBehavior(QueryTrackingBehavior.NoTracking); }
Since in this whole chapter you are using SQLite for the examples, why use 'UseSqlServer' here instead of 'UseSqllite'?
I've added an improvement item for this here: https://github.com/markjprice/cs12dotnet8/blob/main/docs/errata/improvements.md#page-564---controlling-the-tracking-of-entities
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { optionsBuilder.UseSqlServer(connectionString) .UseQueryTrackingBehavior(QueryTrackingBehavior.NoTracking); }
Since in this whole chapter you are using SQLite for the examples, why use 'UseSqlServer' here instead of 'UseSqllite'?