Setup EF many to many with designer?

Posts   
 
    
dle4425
User
Posts: 7
Joined: 04-Jan-2017
# Posted on: 11-Feb-2017 14:18:34   

Is it possible to setup a many to many relationship for Entity Framework in the designer?

EF wants a hidden intermediate table but the designer seems to require an intermediate entity to set it up.

The relationship is roles <-> user each entity has an id (PK) and name.

I can probably code this one by hand but I'm just curious if I'm missing something in the designer.

Thanks.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 12-Feb-2017 10:16:39   

yes, any m:n relationship using an intermediate entity that only has pk fields will work: the intermediate entity is simply ignored during code generation. simple_smile

Frans Bouma | Lead developer LLBLGen Pro