vishal pawar

vishal pawar

  • NA
  • 42
  • 10.5k

How to update many to many relationship in entity framework

Mar 9 2018 12:02 AM
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)