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.

Tags

Code Generation: How To Customize Our Templates

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!

Subscribe