codesmithtools / Templates

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

Table name was wrong case #341

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a table called BENEFICIARIES
2. Generate code
3. Object is named BENEFICIARy

What is the expected output? What do you see instead?
Either Beneficiaries or Beneficiary

What version of the product are you using?
Came with CodeSmith 5.2

Please provide any additional information below.

Original issue reported on code.google.com by Seeri...@gmail.com on 15 Apr 2010 at 7:37

GoogleCodeExporter commented 9 years ago
Apologies, this is for NHibernate template.

Original comment by Seeri...@gmail.com on 15 Apr 2010 at 7:40

GoogleCodeExporter commented 9 years ago

Original comment by paul.wel...@gmail.com on 21 Apr 2010 at 3:53

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 23 Apr 2010 at 3:37

GoogleCodeExporter commented 9 years ago
I tried a possible fix for this. In the source project, I changed 
NHibernateHelper.cs, method GetClassName to change to pascal case before doing 
singular/plural. It seemed to work ok.

See the file I attached.

Original comment by Seeri...@gmail.com on 23 Apr 2010 at 6:09

Attachments:

GoogleCodeExporter commented 9 years ago
I applied the fix that you suggested. Thank you very much!

Original comment by tdupont...@gmail.com on 19 May 2010 at 6:24

GoogleCodeExporter commented 9 years ago
Please can this workaround fix be incorporated into the release code for 
NHibernateHelper?

Original comment by MikeLeeW...@gmail.com on 24 Jan 2011 at 5:59

GoogleCodeExporter commented 9 years ago
Hello,

This was fixed in revision 1638. Are you still seeing this issue? If so can you 
please send us reproduction steps and or a sample.

Original comment by bniemyjski on 27 Jan 2011 at 4:28

GoogleCodeExporter commented 9 years ago
Hi there,

I can confirm that it is indeed fixed - many thanks.

Original comment by MikeLeeW...@gmail.com on 27 Jan 2011 at 4:31