diff --git a/aspnetcore/data/ef-mvc/complex-data-model.md b/aspnetcore/data/ef-mvc/complex-data-model.md index 6762a8d762..6aca9707a6 100644 --- a/aspnetcore/data/ef-mvc/complex-data-model.md +++ b/aspnetcore/data/ef-mvc/complex-data-model.md @@ -228,9 +228,9 @@ You could put a `[Required]` attribute on the Instructor navigation property to ![Course entity](complex-data-model/_static/course-entity.png) -In *Models/Course.cs*, replace the code you added earlier with the following code: +In *Models/Course.cs*, replace the code you added earlier with the following code. The changes are highlighted. -[!code-csharp[Main](intro/samples/cu/Models/Course.cs?name=snippet_Final&highlight=2,3,10,16,23)] +[!code-csharp[Main](intro/samples/cu/Models/Course.cs?name=snippet_Final&highlight=2,10,13,16,21,23)] The course entity has a foreign key property `DepartmentID` which points to the related Department entity and it has a `Department` navigation property.