Jeff-Lewis / codesmith

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

Question: CleanExpression #94

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Original RegEx ^\\w+_
2. I don't want underscores removed from the column names

What is the expected output? What do you see instead?
Column name: Banco_id
I'm seeing: Bancoid
Wouldlike to see: Banco_id

What version of the product are you using?
2.1.661

Original issue reported on code.google.com by m.harttu...@gmail.com on 18 Apr 2009 at 10:59

GoogleCodeExporter commented 9 years ago
Unfortunately, all names are cleaned.  We clean names to make sure they are 
valid for
the compiler.  We used to have a feature to disable name cleaning, we might 
re-add
that feature back if there is enough interest.

Original comment by paul.wel...@gmail.com on 21 Apr 2009 at 2:20

GoogleCodeExporter commented 9 years ago

Original comment by paul.wel...@gmail.com on 21 Apr 2009 at 2:31

GoogleCodeExporter commented 9 years ago
I understand name cleaning is necessary, but underscores are not illegal (ugly: 
yes, 
illegal: no).

Regards.

Original comment by m.harttu...@gmail.com on 21 Apr 2009 at 6:37

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 21 Apr 2009 at 3:57

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 21 Apr 2009 at 4:08

GoogleCodeExporter commented 9 years ago
I would also like to be able to include underscores in column, table, function,
stored proc and other names.  This is very helpful when a database contains such
fields as FDIC_Rate.  Using FDICRate is unnecessarily difficult to read and 
FdicRate
is also not as clear.  Microsoft keeps the underscores in DBML files so why not 
PLINQO?

Original comment by jbf...@gmail.com on 7 Aug 2009 at 9:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I also would like to have the underscores, all my Classes have got underscores, 
when 
mapping Plinqo to my interface classes I need to remove the underscores from 
plinqo.

SQL Parameters need to have the underscore otherwise SQL doesn't find the 
Parameter 
handed to a Stored Procedure (Like the Bug Report I raised)

Original comment by schaffn...@GMX.de on 1 Sep 2009 at 10:51

GoogleCodeExporter commented 9 years ago
The SQL Parameters underscores being cleaned is fixed in the latest build.

We are considering adding options to leave names unchanged.

Original comment by shannon....@gmail.com on 6 Oct 2009 at 3:48