Many-To-Many Class generation
Posted: Tue 04 Jan 2011 08:45
Hi,
I'm using the Entity Framework 4 with RIA Services and Silverlight.
Since RIA Services doesn't support direct many-to-many associations, i've to include the joining table in my model and solve the many-to-many association through two one-to-many associations. This works fine so far.
The only problem happens when i try to add a new table from the database to the model. Everytime i do this, all joining tables are deleted from the model and transformed into direct associations (many-to-many) back again.
This is very annoying since i've to change them again and again everytime i update the model.
So is there a way to change the behaviour of creating associations, so that the model includes the joining table or is it possible to stop Entity Developer from transforming associations back to many-to-many ones?
Btw I'm using Entity Developer 3 with dotConnect 6.
Regards
Nikolai Hellwig
CHW Software GmbH
I'm using the Entity Framework 4 with RIA Services and Silverlight.
Since RIA Services doesn't support direct many-to-many associations, i've to include the joining table in my model and solve the many-to-many association through two one-to-many associations. This works fine so far.
The only problem happens when i try to add a new table from the database to the model. Everytime i do this, all joining tables are deleted from the model and transformed into direct associations (many-to-many) back again.
This is very annoying since i've to change them again and again everytime i update the model.
So is there a way to change the behaviour of creating associations, so that the model includes the joining table or is it possible to stop Entity Developer from transforming associations back to many-to-many ones?
Btw I'm using Entity Developer 3 with dotConnect 6.
Regards
Nikolai Hellwig
CHW Software GmbH