markjprice / cs11dotnet7

Repository for the Packt Publishing book titled "C# 11 and .NET 7 - Modern Cross-Platform Development Fundamentals" by Mark J. Price
566 stars 206 forks source link

Scaffolding models using an existing database #54

Closed MAS-OUD closed 1 year ago

MAS-OUD commented 1 year ago

On page 453, running the command in step 2 with the dotnet-ef version 7.0.4 creates class files that aren't exactly similar to those shown in the book. For example, the Category class doesn't have a constructor, or the two DbSet<T> properties of the Northwind class are not set to null.

markjprice commented 1 year ago

Thanks! I have added an item for this issue: https://github.com/markjprice/cs11dotnet7/blob/main/docs/errata/errata.md#page-454---scaffolding-models-using-an-existing-database