I have designed some classes using Visual Studio class diagramming. Now I would like to persist this data using ORM and maybe other persistence mechanisms. I am wondering if there is a way to generate the SQL based on the properties in my classes, since they fairly well represent the database structure needed. This would save me a lot of manual SQL typing, and give me a nice start.
I didn't start with the database model because I want to have my persistence decoupled from the actual "domain layer" (not sure if this is the correct naming).
The ORM mapper(LLBLGen) can then generate the coded based on this schema, and I'll only have to map the generated objects to my persistence interface.
Is the a good idea, or am I on the wrong path here?
I have found a tool that seems to do the job(MindScape LightSpeed), but unfortunately it's only available for VS2008.