-
Notifications
You must be signed in to change notification settings - Fork 25.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Foreign key and navigation properties: bullet 2 #33624
Comments
I don't see the logic in calling InstructorID the FK to the Department entity; wouldn't that be named DepartmentID? |
Above the Section Foreign key and navigation properties is the class definition of Department entity According to the class definition of the Department which is included below, we can see that InstructorID clearly the FK to the Department entity. public class Department
Therefore, I believe it is not ok when bullet 2 says that " ... Therefore the InstructorID property is included as the FK to the Instructor entity." As we can see in the Department table, InstructorID is the FK to the Department table |
That's not correct. |
Description
[Enter feedback here]
section: Foreign key and navigation properties
section link: https://learn.microsoft.com/en-us/aspnet/core/data/ef-rp/complex-data-model?view=aspnetcore-8.0&tabs=visual-studio#foreign-key-and-navigation-properties-1
bullet 2: An administrator is always an instructor. Therefore the InstructorID property is included as the FK to the Instructor entity.
I think it should be: FK to the Department entity
Page URL
https://learn.microsoft.com/en-us/aspnet/core/data/ef-rp/complex-data-model?view=aspnetcore-8.0&tabs=visual-studio
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/data/ef-rp/complex-data-model.md
Document ID
7a77b058-f005-8d68-ae46-e487c597f18e
Article author
@tdykstra
Associated WorkItem - 321202
The text was updated successfully, but these errors were encountered: