| Since 1.0.4, you could override our templates (stored in the project resources) with your own implementation. All you need to do is to create one text file per template. You can find some already created for you in the Sample Web App that get's downloaded with SubSonic:
Just put these in the root of your project somewhere, then pass the full reference to SubSonic in the SubSonic Config: < SubSonicService defaultProvider="SqlDataProvider" spClassName="SPs" templateDirectory="C:\MySubSonicTemplates"...Now, when the code is generated it will be from your templates, not ours! |
|
About
SubSonic is a .net open source project developed by Rob Conery and a core team of developers including Eric Kemp, Scott Watermasysk, Jon Galloway, Phil Haack, and Gavin Joyce. The current stable release is version 2.0.3. Nightly builds are available in our SVN respository. Categories
Tags
Popular
|
Code Generation: How To Customize Our TemplatesThursday, March 13 2008 - Customization |
|
| © 2008 SubSonicProject.com. Use of this site is subject to our Terms of Use. All rights reserved. Duplication of this site, in part or in whole, is prohibited without prior written consent. |

