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.
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.
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.
Copyright (c) Marimer LLC