Using a DataDirectory for CodeSmith
You can specify a DataDirectory for CodeSmith Generator to easily share and discover MS SQL Express databases. CodeSmith Generator ships with a version of the Petshop database whose Datasource uses a DataDirectory.
DataDirectory Path
By default, the DataDirectory folder for CodeSmith Generato is:
Windows 2000/XP: C:\Documents and Settings{username}\My Documents\CodeSmith\Samples{version}\Data
Windows Vista/Windows 7: C:\Users{username}\Documents\CodeSmith\Samples{version}\Data
Customize DataDirectory Path
You can customize the path that Generator uses to set up the DataDirectory in the AppDomain. Opening the CodeSmithEngine.config file, you will find a configuration node called CodeSmithDataDirectory. Changing this path to another directory will cause Generator to use the new path the next time it starts up.
Windows 2000/XP: C:\Documents and Settings{username}\Application Data\CodeSmith{version}\CodeSmithEnging.config
Windows Vista/Windows 7: C:\Users{username}\AppData\Roaming\CodeSmith{version}\CodeSmithEnging.config