String Utility Library for Code Generation
Posted
by Adam Barney
on Stack Overflow
See other posts from Stack Overflow
or by Adam Barney
Published on 2009-01-22T13:56:18Z
Indexed on
2010/05/29
5:02 UTC
Read the original article
Hit count: 320
CodeSmith has a nice StringUtils class that can be used to change database object names to singular, plural, camel case, pascal case, etc... Very useful for creating data access layers in their code generation tool.
I'm trying to port some CodeSmith templates to the T4 template files used by Visual Studio, and I'm trying to find a similar library to do these things.
There must be one somewhere in T4, since that's what is used to produce the LINQ to SQL classes, and it does a nice job of pluralization / singularization.
Does anyone know where this library exists, or if a free library with similar functionality exists somewhere?
Thanks!
© Stack Overflow or respective owner