I write my domain classes first. Entity framework allows you to generate code and create a databas开发者_如何学Goe and also generate domain classes. What about generating the entity diagram from the already written domain and then generating the database?
You can:
- Build classes, then generate a DB, then make a UML model (not an entity model) from your classes (code-first)
- Build a model, generate classes, generate a DB (model-first)
But there's nothing built in that precisely matches the flow in your question.
精彩评论