v1 RelatedEntities with multiple relationships

Posts   
 
    
jaskey avatar
jaskey
User
Posts: 23
Joined: 09-Jul-2006
# Posted on: 17-Aug-2006 17:14:38   

I have two tables... User and Task... with (2) 1:m relationships between the two... a task has an 'ownerkey' and 'managerkey' so it has two UserKey's that reference the User table. My question is...

When I generate code for this scenario... I get two User entities as properties of Task, one named 'User' and one named 'User_'. This is not a problem per se, but because of the naming it is not clear on which User Entity is linked through which column/relationship. Is this something that I need to change in the templates to make the resulting related entity named something like... OwnerUser and ManagerUser? Or is there a different approach I should take?

I am using Self Servicing.

as always... thanks for the time.

psandler
User
Posts: 540
Joined: 22-Feb-2005
# Posted on: 17-Aug-2006 18:21:44   

Rename the fields in the designer.

I would also recommend that you rename the relationships similarly. If/when you try to use the relationships in code, you will have the same problem (one named User, one named User_).

HTH,

Phil