Re: CodeSmith Beta 4 Released
"Eric J. Smith" <[email protected]> Tue, 21 Jan 2003 09:20:01 -0800
| Newsgroups | gmane.comp.windows.devel.genx |
|---|---|
| Message-ID | <GENX%[email protected]> |
Chris, Yes! And I must thank you and a couple of others for inspiration to do this. We already have this functionality working and are starting to use it internally. So far we are loving it! We have had many times where we used a previous version of CodeSmith to generate several classes based on the same template and then found a bug in our template only to have to go fix this bug manually in every generated class because we had made cusomizations to the classes. Now, we are building our templates with the VS.NET custom tool in mind and providing as many hooks into the template class as necessary to allow us to make whatever customizations that we need to make in a derived class and let CodeSmith re-generate the base code on every build. This includes doing our business objects this way so every time we build and there has been a schema change, our code will reflect that change automatically! Also, in the new build will be a VS.NET CodeSmith Explorer tool window addin that just embeds an explorer window into VS.NET and allows you to drag and drop into your code window. This will allow for enhanced productivity for things that can't or shouldn't be re-generated on every build. And also for snippets of code. For instance, we have a template that generates the code to call a stored procedure based on that stored procedures information gathered from the included Schema Explorer. So we just drag the template into our code window, select the stored procedure, and poof we have code to call that sproc including input/ouput parameters and everything. This is a private list, meaning only subscribers may post to the list or view the online archives. Subscribers can read messages from the Gen<X> archive or unsubscribe from Gen<X> at http://discuss.develop.com/genx.html.