Programming Homework Help

CISS 202 LC The Foreign Key Relationships Entity Framework Discussion

 

I’m working on a .NET exercise and need support.

As learned in CISS 202, in entity relationship diagram (ERD), there is a foreign key when two relations are related. For example, if an instructor can teach many courses while a course can be taught by exactly one instructor, there will be a foreign key in the course table. You show the foreign key relationship by adding the instructor ID as a field in the Course entity. How does this foreign key relationship show in entity framework? In other words, do we use foreign keys in Entity Framework? Defend your answer with specific examples.