AnantLabs / codesmith

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

CSLA - Codesmith is automatically adding ignored tables to Entities.cst #481

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Open the Petshop Solution
2.  Remove the LineItem table from all of the Entity and List Entity Categories
3.  Add an ignore RegEx for the LineItem table
4.  Remove the Orders Switchable Object.
5.  Say OK and close the Codesmith config window
6.  Edit the Entities.cst again.  This time re-add Orders to the 
SwitchableObject category.  Say Ok to save and close.
7.  Edit Entities.cst again or open it in the XML editor.  You will see that 
LineItem has been re-added, even though you removed it and added an ignore 
expression.

NOTE - you can produce the issue by just moving the Orders table to another 
category - you don't need to remove and re-add it.

What is the expected output? What do you see instead?

You should be able to codegen only the tables you specify.

CodeSmith: v5.2.1, CSLA Templates: v3.0.0.0, CSLA Framework: v4.0.0.

Original issue reported on code.google.com by RoyMunso...@gmail.com on 5 Aug 2010 at 10:54

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 9 Aug 2010 at 7:31

GoogleCodeExporter commented 9 years ago
Hello,

I'll take a look into this and make sure it gets fixed for 3.0.1

Thanks
-Blake Niemyjski

Original comment by bniemyjski on 17 Aug 2010 at 10:40

GoogleCodeExporter commented 9 years ago
Hello,

I remember reproducing this but just checked again this morning and wasn't able 
to reproduce this. I did see that LineItem was added to a ChildList (possibly 
twice) and this could be why it was being generated. Can you verify that it was 
not in any of the object types for generation.

Thanks
-Blake Niemyjski

Original comment by bniemyjski on 2 Sep 2010 at 12:09

GoogleCodeExporter commented 9 years ago
I am still experiencing this issue.  The codesmith config window is adding 
LineItem automatically (it wasn't there before I opened the config window).  
Anytime I add a new a new item, it adds all of it's children (based on FK 
relationships).  I have resorted to just hand editing the entities.csp file, 
that way the children don't get added.  It seems to add those items after you 
click the 'OK' button.  You don't see the entities added in the categories 
while editing.

Original comment by RoyMunso...@gmail.com on 2 Sep 2010 at 5:39

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 3 Sep 2010 at 3:34

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r1938.

Fixed  Issue 481:   CSLA - Codesmith is automatically adding ignored tables to 
Entities.cst

Original comment by bniemyjski on 10 Sep 2010 at 12:53

GoogleCodeExporter commented 9 years ago
Hello,

Can you please check the latest nightly build.

Thanks
-Blake Niemyjski

Original comment by bniemyjski on 10 Sep 2010 at 12:54

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 10 Sep 2010 at 2:27