markjprice / cs12dotnet8

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

Chapter 12 Page 645 #40

Closed pmarangoni closed 3 months ago

pmarangoni commented 3 months ago
  1. In EmployeeTerritory.cs, make the TerritoryId property required.

There is EmployeeTerritory.cs class file in the project (I'm using SQL Server not SQLite). That lookup table is dealt with in the NorthwindContext.cs file in the function OnModelCreating.

markjprice commented 3 months ago

image

The book instructions are for SQLite not SQL Server so step 11 does not apply to you.

markjprice commented 3 months ago

I've added an improvement item for this: https://github.com/markjprice/cs12dotnet8/blob/main/docs/errata/improvements.md#page-634---creating-the-northwind-database