Geting the relation name

Posts   
 
    
mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 13-Sep-2007 08:52:57   

So, is there a way to get a strong typed relation name? I mean like a const or enum somewhere?

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 13-Sep-2007 11:30:28   

As far as I know, that's not available, but you can add it yourself using templates.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39910
Joined: 17-Aug-2003
# Posted on: 15-Sep-2007 11:48:55   

The main difficulty is: how would you name a relation? It's not as trivial as you might think, because consider Customer - Address, where you have two of them: one for visitor address and one for billingaddress... simple_smile So you often end up with the names we use for teh properties which produce the relations, e.g. CustomerEntity.Relations.OrderEntityUsingCustomerId

Frans Bouma | Lead developer LLBLGen Pro