.Net 2.0 XSLT Templates for Kathleen Dollard's code generator

.Net 2.0 XSLT Templates for Kathleen Dollard's code generator

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


wjcomeaux posted on Monday, October 23, 2006

Does anyone know if these were ever finalized? I remember a few months back when .net 2.0 was still in beta there was someone on Kathleen's forums who had a link to these. Since then her website has undergone some redesign and her forums are currently down (for a few weeks now).

Has anyone here created these templates with the current version of CSLA?

Thanks,

Will

<Edit>I am looking specificaly for C# templates but I can easily convert from VB.NET if available.</Edit>

wjcomeaux replied on Tuesday, October 24, 2006

Guess not. I ordered the 2005 version of the book last night and should get it today. I'll see if I can concoct the templates myself. I'll post my results for scrutiny and use when I get somewhere with them. Shouldn't take more than a couple of days.

Bayu replied on Tuesday, October 24, 2006

Hello,

I closely monitored your thread hoping someone would help you out. I am in the middle of reading Kathleens book and like you I intend to bring her ideas to life for CSLA 2.x. At the same time you started this thread I asked Q Johnson for some information, since he mentioned some custom templates earlier on this forum, but he has not replied yet.

I guess there is much to gain by writing these templates yourself. I guess the experience is much needed when it comes to debugging/maintaining them.

I would be very interested in getting Kathleen's harness to work for CSLA 2.0 and intended to implement it myself sooner or later. Maybe we can stay in close contact and perhaps even work on it together when this might come in handy and share some of the effort? I am not sure if this really is a multi-person project, but at least I would be more than willing to help you out with any tough detail that comes up. I have a fair amount of XML/XSLT experience which might be of benefit.

Let me know what you think?

Bayu


wjcomeaux replied on Tuesday, October 24, 2006

As for the harness itself, it's easy to port into the 2.0 environment. I've got it working quite nicely. It is just the templates for the new framework. I have have my 2.0 version of the generator work on any templete. The problem is getting a template that generated 2.0 code. I am certain that there are templates for this out there as I had looked at them at one time. They incorporated generics and such in the CSLA framework. I'd be surprised if the project was just dumped. The problem is, there is no way to search through Kathleen's forums (or even view them) to find out who was working on it. It's been months since I last worked with this and new we are ready to push forward with CSLA 2.0 and the code generator.

I don't imagine it will be that difficult to come up with templates for the new framework, but I'll need the book for reference. It should arrive today. I'll post my templates as I work on them. I'm actually working on them right now.

 

Will

Brian Criswell replied on Tuesday, October 24, 2006

I read Kathleen's book over a year ago and the theory in it is top notch.  Unfortunately, I did not like how the execution turned out.  So I wrote my own metadata manipulation application and use CodeSmith to do the actual generation of code.  I would recommend that you look at the various CodeSmith related projects that are in CSLAcontrib.

Bayu replied on Tuesday, October 24, 2006

Hey,

I have ported the harness in dotnet 2.0 already, which was trivial indeed. I haven't had the chance to toy with it, but I will this weekend.

You sound confident and pretty much self-sufficient, so I guess you'll be fine. If anything comes up though I'd be glad to help.

Good luck,
Bayu

Bayu replied on Friday, October 27, 2006

Bayu:


At the same time you started this thread I asked Q Johnson for some information, since he mentioned some custom templates earlier on this forum, but he has not replied yet.



Hey wjcomeax,

I recieved those templates from Q Johnson. They were originally published by someone called Pete Franta. The templates are for CSLA 1.4 and according to the accompanying notes they contain several (yet documented) bugs.

There seem to be some improvements in the templates for the stored procs, which may be of interest. I could send you a copy, let me know your address if you wish me to.

Regards,
Bayu


wjcomeaux replied on Saturday, October 28, 2006

Please do send me a copy of them.

Send them to both will_comeaux@stuller.com and websitewill@cox.net as I am not sure where I will be the next time I work on this (probably at work on Monday morning).

How much different is 1.4 from the 2.x verison?

I've got my port nearly complete (first run) and will make them available sometime next week if anyone here wants a look. I am still working out a few things in the generator. Things like Kathleen somewhere has a SmartDate replacement that is using "CSLA" which works fine in VB but C# requires it to be "Csla". Once I find that change I should have compilable code being generated.

After that I plan to step back and examine the bigger picture as well as see about making sure I have all changes applied to the templates as I am currently generating them straight from the book but I'm sure there have been improvements to the framework since the book was published.

Cheers,

Will

Bayu replied on Sunday, October 29, 2006

wjcomeaux:

Please do send me a copy of them.



Done.

CSLA 2.0 is very different from 1.4, not in concept of course, but code-wise. See also the changelog that compares v2.0 with v1.x: http://www.lhotka.net/Article.aspx?id=1b043659-c5e2-4832-ae48-048ca281c038

Bayu

Copyright (c) Marimer LLC