Search code examples
asp.net-mvcentity-frameworkmany-to-manydatabase-first

Many To Many Relationship / Entitiy Framework Database First with MVC 4 Internet Application


I use MVC 4 Internet Application with VS 2012 and Entity (5.0) Framework Database First..

I created my database with relationships..

I create ADO.NET Entity Data Model.. And I can see all relationships (one-to-one, one-to-many, many-to-many)..

I want to create my controller and views with "mvc controller with read/write actions and views using entity framework".. There is no problem with One-to-Many and One-to-One..

How about Many-to-Many??


Solution

  • All problems, which are something like that, are about the ViewModels..

    http://msdn.microsoft.com/en-us/vs2010trainingcourse_aspnetmvc3fundamentals_topic7.aspx