AnantLabs / codesmith

Automatically exported from code.google.com/p/codesmith
1 stars 0 forks source link

Many to many wouldn't be generated if intermediate table has other columns other than the FK columns #520

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Build three tables to setup many to many relationship, A -> I <- B
2.add additional columns to intermediate table
3. run code generation

What is the expected output? What do you see instead?
Expect to access B from A and A from B.

Please use labels and text to provide additional information.
Many to many wouldn't be generated if intermediate table has other columns 
other than the FK columns

Original issue reported on code.google.com by lm...@hotmail.com on 28 Oct 2010 at 12:12

GoogleCodeExporter commented 9 years ago
Hello,

What set of templates are you using?

Thanks
-Blake Niemyjski

Original comment by bniemyjski on 29 Oct 2010 at 2:34

GoogleCodeExporter commented 9 years ago
Hi Blake, 

I am running PLINQO v5.0.0.1687 in C#.  Entities.cst and its child templates 
seems to be the issue.

Thanks
Ming

Original comment by lm...@hotmail.com on 29 Oct 2010 at 2:39

GoogleCodeExporter commented 9 years ago
Hello,

This scenario is not supported. For a full description on why this isn't 
supported please see this blog post 
(http://community.codesmithtools.com/CodeSmith_Community/b/tdupont/archive/2009/
01/08/defining-many-to-many.aspx).

Thanks
-Blake Niemyjski

Original comment by bniemyjski on 5 Nov 2010 at 3:24