6
Answers

How to update many to many relationship in entity framework

vishal pawar

vishal pawar

6y
10.7k
1
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.?
 
 
 
Answers (6)