Generate CSLA objects from xsd files

Generate CSLA objects from xsd files

Old forum URL:

sbrickler posted on Thursday, December 06, 2007

I was wondering if anyone has ever tried generating CSLA objects from an xsd file. I have an existing xsd file that I can use xsd.exe to generate a normal .net class. As Rocky outlines in Chapter 11, this would be good for generating DTO's; but I would also like to use it to generate the business method properties section of my BusinessBase objects. This would give me a good start on the class without having to copy all the properties and add the specific CSLA requirments manually. Does anyone have any good code generation templates for such a thing??

skagen00 replied on Thursday, December 06, 2007

Before we moved away from code generation we were generating classes using XML - basing it off Ricky Supit's CodeSmith templates and making some modifications to allow for inheritance and certain other attributes & properties.

So you might think about looking at those to give you some direction if you're open to other generation methods.


Copyright (c) Marimer LLC