Code Generation

2 minute read

Sometimes User interfaces can’t provide a solution for every scenario where you might need additional functionality by customization. One area where you might come across this is if you’re trying to use Oracle on an 64bit machine or in a custom Oracle instance. If you are running Windows XP there is a good chance you can get away with using the built in Connection Editor and use CodeSmith to connect to your Oracle Schema.

1 minute read

There may be a time when you need to use Extended ASCII Codes in your CodeSmith Generator Templates. If you have already tried using them into your template you have more than likely ran into the following problem. When a user first creates a template an Encoding attribute is not added by default to the CodeTemplate directive. So when a user starts adding characters in the Extended ASCII range, they will run into the following problem without first setting the encoding attribute. If you…

2 minute read

A tip that not a lot of people know is that the samples are not reset during every new release of CodeSmith Generator. New versions of templates are added to the CodeSmith Generator template directory for the Major and Minor versions. However that is not the case for regular builds (identified via the assembly build number) for example: 5.3.x. Please note that this will also work if you want to reset your templates for the fun of it.