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 linespull/2426/head
parent
cdd911c900
commit
a848cf7eb0
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue