? -- *VERY* basic code generation ??

? -- *VERY* basic code generation ??

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


tsaltd posted on Tuesday, September 11, 2007

All of the code generation methods that I have run into begin with sucking schema info from tables to generate DataPortal_xyz methods.

What about the basic stuff ??  Automating what I'm sure many of us do ...

 ( Hats off to the CSLAGen team !! ... maybe I can adapt it to generate what I need .. but my BO's have complex OR Mapping requirements )

to generate properties .... Something that could consume a Visio or Rational UML class would be awsome.

I just realized ... I've never used the Class Designer in VS before ... is there a programming interface for that tool to automate the repetetive stuff ???

I've got to be overlooking something obvious.

Please point me in the right direction.

Thanks,

Steve

tsaltd replied on Thursday, September 13, 2007

RE: VS Templates ... Found these ...

http://www.codeplex.com/Tagging/TagDetail.aspx?TagName=Visual%20Studio

anyone have an alternative ????  Something more recent.

I also Reverse Engineered C# project to Visio UML objects ... I'm not sure if there is an API or scripting interface to to search and replace to automate Business Object coding  ... any help jump-starting or sharing experience with that approach will be appreciated ... ( I hvaven't installed Visio for Office 2007 yet .. but it is available to me )

The Visio solution will be very helpful to develop sequence diagrams ... I'm going to take a shot at documenting Rocky's "deep data" processing using Data Transfer Object.

I'm also going to take a look at the Dollard Code Gen book .... will it cover the basics that I am looking for to get started ???

Thanks,

Steve

 Steve

JoeFallon1 replied on Thursday, September 13, 2007

Dollard's book is quite good conceptually. As I understand it, there is little in there for actually getting work done.

Many people use Codesmith to develop Business Objects as it is quite straightforward.

Ver 2.6 is still free if you poke around their website hard enough.

Lots of other code gen mechanisms exist - many are referred to in threads. I forget all their names. But Xal is "in charge" of one that uses Codesmith under the hood. So you can send Xal a message and ask about it if you want.

Joe

Copyright (c) Marimer LLC