CSLA: OMG, how it calls for codegen!

I've been working on a CSLA project for grins, one I can mold, twist, and hack to my heart's content. I've been working on it in my "off" time for a couple of months now. I have rediscovered something for myself I have read many times:

CSLA screams for CodeGen.

Now, don't get me wrong. I like CSLA. It provides a standard approach in such a way that everyone on the project can speak intelligently about their feature and everyone else understands. We don't have 8 different approaches to very similar problems. The learning curve is a little steep, but it's a good trade off.

Initially, on the project I am consulting on, we were using some codegen tools. We were trying to achieve the ability to codegen classes from our DB tables that would compile right away, basically keeping the custom stuff in one part of the partial class, and the standard properties, factory methods, etc., in the designer portion.

Now that I have hand-coded several classes and got them working, I have changed my mind....again.....oy.

I've been experimenting with different codegen/template tools, but have yet to find something to suit me. Any suggestions?

posted @ Tuesday, June 05, 2007 10:47 PM

Print

Comments on this entry:

# re: CSLA: OMG, how it calls for codegen!

Left by Gabriel Lozano-Moran at 6/6/2007 2:09 PM
Gravatar
Well it depends on your set of requirements. You could take a look at tools like CodeSmith, MyGeneration, LLBLGen and alike Active Code Generators.

# re: CSLA: OMG, how it calls for codegen!

Left by Todd Stout at 6/6/2007 9:52 PM
Gravatar
As you know, I'm a little biased towards velocity, but you might take a look at http://www.stringtemplate.org/
Comments have been closed on this topic.
«December»
SunMonTueWedThuFriSat
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910