Codesmith csla template upgrade Path for VB?

Codesmith csla template upgrade Path for VB?

Old forum URL: forums.lhotka.net/forums/t/5751.aspx


reagan123 posted on Thursday, November 06, 2008

Hello everyone.
I have yet another code generation question.  I've downloaded the latest code generation tempates from the csla contrib page.  I see that there are VB templates for csla version 2.x. 

What is the best path to modify these templates so I can generate classes for CSLA 3.0?  Do I need to modify each template by hand or is there someone here who can point me to templates that can be used to generate VB csla 3.0 files?

Any help greatly appreciated.  I've been hand coding my business objects for awhile now and really would like to use code gen where possible now :)

thanks!

rsbaker0 replied on Thursday, November 06, 2008

This doesn't specifically help with the templates, but I moved from CSLA 2.1 to 3.0 with almost no changes, so you might try the templates as is for 3.0.

3.5 introduced managed fields/properties and the child data portal, which would require different templates to take advantage of. However, legacy style code should still work though -- I really didn't even have to change much to move to 3.5 except for the change to SaveItem() in EditableRootListBase.

There are also templates on Codeplex that may have been updated for 3.5, but I don't have a link.

Copyright (c) Marimer LLC