Should/can one generate a database schema of ones classes?
问题 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