Yet Another Code Generation/Template Question...
Yet Another Code Generation/Template Question...Old forum URL: forums.lhotka.net/forums/t/5086.aspx
reagan123 posted on Friday, July 11, 2008Hello everyone,
I've just started looking into code generation after writing all of my BO's by hand for awhile. I searched and found many different posts, examples and templates. Most posts I found were older so I wasn't sure if they may be a bit dated.
Can anyone here tell me which existing templates (if any) most match the way Rocky writes his objects in the book (except with the option for partial classes)
I'm currently using CSLA 3.0.4
Philip replied on Thursday, July 17, 2008
Try Code Complete (www.eurowisesoft.com). It supports both CSLA 3.0.4 and 3.5 and follows cery closely Rocky's patterns.
reagan123 replied on Thursday, July 17, 2008Thanks for the reply! One of our guys is looking at that now.
I've actually spent the last few days messing with the templates I downloaded for codesmith. After disecting them a bit I fell I have a good grasp on how to modify them. I actually just finished with the BusinessBase and think i'm well on my way.
Here are the one's I downloaded in case anyone is interested
It's taken me a bit to get used to the partial classes and extra events/hooks... I'm still not sure when to use some of them... right now I just ignore them all.
JoeFallon1 replied on Friday, July 18, 2008
I do not use partial classes.
But as I recall, the extra event hooks are needed because you cannot Override a method in a Partial class. So if you want to "change the behavior" of the method that was code generated you have to use the hook in the partial class.
Copyright (c) Marimer LLC