From a848cf7eb0d884620a0fc26fc61100ba3b5341db Mon Sep 17 00:00:00 2001 From: Mike Kinney Date: Mon, 19 Dec 2016 16:22:17 -0800 Subject: [PATCH] Removed code highlight from Modify the Course... (#2425) * Removed code highlight from Modify the Course... Removed the code highlighting from the sample code in Modify The Course Entity. The highlighting was wrong and the tutorial text doesn't reference it, so I simply removed it. * Code highlighting - added note nd corrected lines --- aspnetcore/data/ef-mvc/complex-data-model.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.