Setting Entities Relationship

Posts   
 
    
helderjmo
User
Posts: 1
Joined: 11-Oct-2008
# Posted on: 11-Oct-2008 21:34:19   

Hi,

I'm evaluating LLBLGen Pro 2.6 and I'm still exploring and understanding basic features. I have searched about a easy way to add a new relation between two entities that have a n:m relation (with a relation table). Now I'm creating the relation directly by adding a simple row to relation table... There is an easiest way to do it, as for example, using a simple method/function member of one of the two entities???

Thanks!

Best Reagards!

Hélder

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 12-Oct-2008 20:43:27   

When you refresh the catalog at LLBLGenPro Designer the relations encountered at DB are mapped to your entity model. If a pair of 1:n m:1 relations are found for two entities, a m:n relation is also created. Then you can use use m:n relations at generated code this way.

If you don't have any relations at your DB, you can add m:n relations manually.

Does that response your question?

David Elizondo | LLBLGen Support Team