Many to many generation issue?

Posts   
 
    
JSobell
User
Posts: 145
Joined: 07-Jan-2006
# Posted on: 13-Mar-2019 23:09:59   

I've not done a great deal of investigation into this, but I'm having trouble experimenting with generated m:n relationship code. I have a relationship defined as shown in the attached image, but the underlying 'Customer' doesn't contain any generated 'ListCollectionViaCustomerList' code. I also see that the entities are now called 'Customer' instead of 'CustomerEntity', which I assume is a new feature? It makes it a bit tricky to differentiate between DTOs and Entities, which had me stumped for a while because I found the above method on my DTO Customer simple_smile

Attachments
Filename File size Added on Approval
Capture.PNG 23,506 13-Mar-2019 23:10.34 Approved
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 14-Mar-2019 11:34:45   

You by any chance are using a different framework than LLBLGen Pro ? simple_smile This sound stupid but if you e.g. pick Entity Framework you get m:n relationships only when there are no non-pk fields on the intermediate entity simple_smile

Frans Bouma | Lead developer LLBLGen Pro
JSobell
User
Posts: 145
Joined: 07-Jan-2006
# Posted on: 15-Mar-2019 00:26:48   

No, it's LLBLGen Pro all the way simple_smile I've attached the project source. As I mentioned, it was just a quick test project, so there are only three tables referenced. This is using v5.5.2

[Edit] Ahh... Yes, the setting is on EF.Core, thank you!! I never use EF, and that was absolutely NOT what I wanted in there! Back of the class for me...

Cheers, Jason

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 15-Mar-2019 07:24:00   

JSobell wrote:

[Edit] Ahh... Yes, the setting is on EF.Core, thank you!! I never use EF, and that was absolutely NOT what I wanted in there! Back of the class for me...

smile Good you figured it out. I will close this thread for now. Let us know if you need further assistance on this.

David Elizondo | LLBLGen Support Team