I am a beginner with EF and MVC, so, I have been using the Database first approach. I am facing a problem which is, I have in my database a table called Subjects, and another one called Prerequisites. The Idea is that each subject is supposed to have one or more prerequisite. When I created the ADO.NET Entity Data Model, it mapped those two tables into only one table -Subjects- but with two navigation properties both referencing the Subjects table. I need to create a controller to manage assigning prerequisites to subjects. So, I thought I could have just like my database, a separate table called Prerequisites which I can use as the Model Class to my controller. I don't know how to do this. please help if you can.
Here is the Generated Model for the Subjects table
Here is the diagram for the Subjects and Prerequisites tables