Generating CSLA BOs directly from EDM using T4

Generating CSLA BOs directly from EDM using T4

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


Luzius posted on Friday, April 09, 2010

Hi,

I'm currently reading about EF4 and thought it would be really cool to be able to generate the CSLA-BOs directly from the EDM using a t4 template. All the properties and all the DataAccess code could be generated. Using partial classes would make it terribly easy to add the rest like the rules etc.

I haven't looked into it further yet, but I was wondering if anyone has already tried this.

Greetings Luzius

RockfordLhotka replied on Friday, April 09, 2010

There's a project on CodePlex that is trying to do this. I don't know how far they are with the project, but the effort exists.

lukky replied on Friday, April 09, 2010

Hi,

Look for the T4CSLA project on Codeplex.

It's been quiet for a while, but the basics look good.

I've done modifications of the template on my side to match it to my liking, but I'm not finished yet, and if I release it, you'd still have some work to do.

Let me know if you'd like to look at my mods.

Regards

Copyright (c) Marimer LLC