markjprice / cs12dotnet8

Repository for the Packt Publishing book titled "C# 12 and .NET 8 - Modern Cross-Platform Development Fundamentals" by Mark J. Price
620 stars 192 forks source link

Page 564 - SQL Server while using SQLite in this chapter as example #68

Closed rmantel23 closed 1 month ago

rmantel23 commented 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'?

markjprice commented 1 month ago

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