Last post May 21, 2015 03:54 AM by bigyeti
May 20, 2015 08:56 AM|bigyeti|LINK
All I'm trying to achieve is creating these two many-to-many relationships that happen to share a table.
How can I do this in EF? I tried two separate .edmx but it won't let me use AspNetUsers in both models. I considered putting all 5 tables in one entity data model, but then the Bands and Venues tables are in yet other relationships also. This would have
been straightforward in WebForms. How do I get round this? Links to videos and tutorials would be very helpful.
May 20, 2015 10:52 AM|bruce (sqlwork.com)|LINK
EF is no different in webforms, nor is required for MVC. While EF is common in MVC its a separate technology (in because MVC is stateless, many of the features don't work as EF is statefull, but stateless support as improved). You should start here:
EF is moving its forum support to stackoverflow.
May 21, 2015 02:18 AM|Starain chen - MSFT|LINK
I tried two separate .edmx but it won't let me use AspNetUsers in both models. I considered putting all 5 tables in one entity data model, but then the Bands and Venues tables are in yet other relationships also.
Please provide the detail steps that you do.
What do you mean it won’t let me use AspNetUsers in both models?
On the other hand, you could configure many to many relationships through code first mode.
# Configure Many-to-Many relationship using Code First Approach
May 21, 2015 03:54 AM|bigyeti|LINK