This is a migrated thread and some comments may be shown as answers.

many to many relationship with ORM

2 Answers 92 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
aung maw
Top achievements
Rank 1
aung maw asked on 10 Apr 2009, 01:43 PM
Hi All,  I have two tables.   Employee and Position.  When I establish many to many relationship, ORM would create Employee_Position table with Employee_Id, Position_Id and seq_num primary keys.  My question is how can I add another fields like DateEffective & DateExpiration in Employee_Position to track the time each employee used for the positions.  I can't seem to find Employee_Position table in "Forward Mapping (Classes to Tables).  Please help.

Many Thanks,

2 Answers, 1 is accepted

Sort by
0
Ady
Telerik team
answered on 10 Apr 2009, 02:10 PM
Hello aung maw,

 You can have a look at this KB article that explains how to map a m:n relationship with extra information.

Hope this helps.

Greetings,
Ady
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
aung maw
Top achievements
Rank 1
answered on 10 Apr 2009, 04:38 PM
Hi Ady, This is great. Thanks so much.  Regards,
Tags
General Discussions
Asked by
aung maw
Top achievements
Rank 1
Answers by
Ady
Telerik team
aung maw
Top achievements
Rank 1
Share this question
or