I created a map called TableNameToEntity, using CodeSmiths map editor. The key consists of table names. The value consists of the name of the entity that will be generated.
I'm trying to get it so that when running a template the user/programmer will choose which tables get processed from the mapping file.
The main reason I'm doing this is because I can't depend on the singular/plural algorithm to generate the proper entity names.
Anybody know if this is possible? Is there a better approach that would achieve the same results?I AM NOT USING NET TIERS.
Below is a sample of the XML.
<?xml version="1.0" encoding="utf-8"?>
<codeSmith xmlns="http://www.codesmithtools.com/schema/csmap.xsd">
<map caseSensitive="true" returnKeyWhenNotFound="false" description="BeerHouseTableNameToEntity">
<item>
<key>tbh_Articles</key>
<value>Article</value>
</item>
<item>
<key>tbh_Departments</key>
<value>Department</value>
</item>
</map>
</codeSmith>