Visual Studio 2010 建模项目中有 Castle ActiveRecord 生成器吗?
Visual Studio 2010 包含一个建模项目,可用于创建类似类图的 UML 图。我们在 VS 2010 建模项目中有大量的类图,并希望从中生成 Castle ActiveRecord 类。
我搜索并发现了很多工具,例如 ActiveWriter、MyGeneration,Active-Record-Gen,The DarkSide、GeneratorStudio 和 < a href="http://www.agilityfororms.com/Home/Products/" rel="nofollow">AgilityForORMs Castle ActiveRecord 代码生成器。但它们都只从数据库生成类,而不是 VS 2010 建模项目或 UML XMI。
您知道有什么工具可以从 VS 2010 建模项目的类图中生成 Castle ActiveRecord 类吗?
Visual Studio 2010 includes a Modeling Project that lets to create UML diagrams like class diagram. We have plenty of class diagrams in VS 2010 Modeling Project and wish to generate Castle ActiveRecord classes from them.
I have searched and found many tools like ActiveWriter, MyGeneration, Active-Record-Gen, The DarkSide, GeneratorStudio and The AgilityForORMs Castle ActiveRecord code generator. But all of them generate classes from database only not VS 2010 Modeling Projects or UML XMI.
Do you know any tool for generating Castle ActiveRecord classes from VS 2010 Modeling Project's class diagrams?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不幸的是,我认为这是不可能的。也许您可以从 UML 生成数据库,然后使用您列出的工具之一对其进行逆向工程,而不是根据 UML 图生成 Castle AR 模型?
此链接似乎会生成您可以使用的 DDL。
Unfortunately, I don't think that's possible. Maybe instead of generating Castle AR models based on your UML diagram you can generate your database from your UML and then use one of the tools you listed to reverse engineer it?
This link appears to generate the DDL which you could then use.
您必须编写自己的模板。
搜索“如何从 UML 模型生成文件”和“如何从 UML 类生成代码”。
You would have to write your own templates.
Search on "How to Generate Files from a UML Model" and "How to Generate Code from UML Classes".