How do I ModelBind a many-to-many relationship with MVC 3 and Entity Framework Code First?

前端 未结 3 1791
执念已碎
执念已碎 2021-01-06 13:46

I\'m coming across the same problem in my MVC 3 applications. I\'ve got a view to create an new product and that product can be assigned to one or more categories. Here are

3条回答
  •  生来不讨喜
    2021-01-06 14:39

    I had a similar issue few days ago. Ended up using a "hack" - MVC 3 - Binding to a Complex Type with a List type property

    Please leave a message if you find an alternative way.

提交回复
热议问题