CodeSmith Community
Your Code. Your Way. Faster!

5. Map Editor: Using a Map Editor

5. Map Editor: Using a Map Editor
posted by Robert Hinojosa
10-18-2006


Downloads: 28
File size: 0 B
Views: 18,337

CodeSmith Maps (.csmap) - This feature will allow you to create dictionary style maps of things like SQL to C# data type mappings.

In this example we will be converting from the .net System Type, to the csharp alias types.  If they don't exist, then we want it to return the original value. 

For example, there is no datetime keyword, so it would return back System.DateTime.

Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems