Hi,
Can anyone guide me a better way to update the many to many relationship with Entity framework and Repository Pattern?
Regards,
Imran Ahmad Mughal
Hi Imran,
Please see the post at StackOverflow at: http://stackoverflow.com/questions/8576916/ef-repository-pattern-many-to-many-insert
This might help you how to do m-2-m inserts.
Also this MSDN blog post has some answers for your question https://social.msdn.microsoft.com/Forums/en-US/77b4123c-1482-4dca-959f-6d2347c0f0d1/code-first-many-to-many-with-repository?forum=adodotnetentityframework
Hope this will help.