codesmithtools / Templates

CodeSmith Generator Templates
http://www.codesmithtools.com/product/generator
54 stars 35 forks source link

Error generating Many To Many Properties #544

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate an object that should expose a child from a ManyToMany
2. See that the generated object doesn't expose the correct properties

The fix is to edit line 33 of CodeSmith.SchemaHelper.EntityManager from this:
 bool includeManyToMany = table.IsManyToMany() && !Configuration.Instance.IncludeManyToManyEntity;

to this:
bool includeManyToMany = Configuration.Instance.IncludeManyToManyEntity && 
table.IsManyToMany();

Original issue reported on code.google.com by websitew...@gmail.com on 19 Jan 2011 at 6:42

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 20 Jan 2011 at 4:16

GoogleCodeExporter commented 9 years ago
Hello,

This should be fixed in the latest nightly build of the templates. Could you 
please get the latest build and verify this behavior.

Original comment by bniemyjski on 8 Mar 2012 at 3:12