AnantLabs / codesmith

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

KeywordAlias executes multiple times. #319

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Created a set of keyword alias changes for a large database.
2. In table A I had something like TableID = Identification
3. In table B I had something like TableBFKTableAID = TableID
4. When I created the Business objects for Table B TableBFKTableAID became
Identification property(which resulted in two and a compile failure)

What is the expected output? What do you see instead?
I'm not sure that keywordalias logic should continue executing after a
rename has occured, because I assumed that a rename would only happen once
or it's too complicated to follow and the possibility of bugs getting
introduced from Codesmith templates.

What version of the product are you using?
v2.0.1.1532

Please provide any additional information below.

Original issue reported on code.google.com by JenasysD...@gmail.com on 21 Mar 2010 at 10:18

GoogleCodeExporter commented 9 years ago
This can also be problematic if you put underscores in the renamed words as the 
CSLA
naming conventions cleanup code will strip them out and can cause multiple 
renaming.
AKA. I got caught trying to trick the process by putting underscores into the 
renamed
values.

Original comment by JenasysD...@gmail.com on 22 Mar 2010 at 4:00

GoogleCodeExporter commented 9 years ago
Hello,

The templates shouldn't rename TableBFKTableAID to Identification. Could you 
possibly 
email me this solution so I can take a look into it. I'm assuming that your 
rename 
alias is set to rename this and it is not checking for previously renamed 
properties 
on the current entity.

Thanks
-Blake Niemyjski

Original comment by bniemyjski on 22 Mar 2010 at 11:27

GoogleCodeExporter commented 9 years ago
Hello,

Has there been any progress on this issue?

Thanks
-Blake Niemyjski

Original comment by bniemyjski on 8 Jul 2010 at 9:53

GoogleCodeExporter commented 9 years ago
Issue occurs in r1766.  I've got to get some SQL Scripts and sample solutions 
together to demo a few issues

Original comment by JenasysD...@gmail.com on 8 Jul 2010 at 10:48

GoogleCodeExporter commented 9 years ago
Sent a private mail with SQL DB, VS2008 solution and example of code generation 
that covers issue 319, issue 355, issue 380 and issue 450.  They all a based 
are based on "Naming" for the classes and properties that are generated by 
these templates. They are my highest concern for "compile" ready code 
generation, base on r1788.

Original comment by JenasysD...@gmail.com on 9 Jul 2010 at 1:43

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 9 Jul 2010 at 11:23

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

Fixed Issue 319: KeywordAlias executes multiple times.

Original comment by bniemyjski on 13 Jul 2010 at 3:29

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 13 Jul 2010 at 5:41