Hi,
I have many to many relationship between students and courses as below.
I want to update the courses for given student(ex student Id 10 has selected two courses having Id 2 and 6 .Now I want to delete course Id 6 for student id 10 and add new course id ,say 3 ).
I am using code first approach with Entity framework 6 in MVC4.
Can anyone help to solve this issue.?



Naresh SinghalRank #1,189 · 1.5K reputationPosted Mar 8, 2018, 7:48 PM EST
vishal pawar39 reputationPosted Mar 8, 2018, 8:12 PM EST
Naresh SinghalRank #1,189 · 1.5K reputationPosted Mar 8, 2018, 8:44 PM EST
Hemant JindalRank #827 · 2.7K reputationPosted Jun 14, 2018, 4:09 AM EDT
Packiaraj SanthiyaguRank #659 · 3.6K reputationPosted Jun 14, 2018, 5:03 AM EDT
Mageshwaran RRank #411 · 6.1K reputationPosted Nov 11, 2019, 5:29 AM EST