Visual Studio是否从UML图表生成代码? [英] Visual Studio generate code from UML diagrams?

查看:108
本文介绍了Visual Studio是否从UML图表生成代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究使用Visual Studio 2015从UML图生成代码的过程.根据我所做的事情,在生成代码之前,我先创建了用例图,活动图,序列图和类图.

I'm doing research on producing code from UML diagram using Visual Studio 2015. From what I have done, I have created Use case, Activity, Sequence and Class diagram before generating the code.

生成代码时,我发现Visual Studio仅在生成代码时引用我的类图.

When I generate the code, I see that Visual Studio only takes my class diagram to be referred to when it generates the code.

所以我的问题是,Visual Studio在生成代码时仅引用类图吗?

So my question, is it true that Visual Studio will only refer to the class diagram when generating the code?

如果不是,那意味着我在做另一幅图的方式是错误的(我在使用工具的方式是错误的)它将拉扯到什么其他图?

If not, which means that the way I'm doing the other diagram is wrong (the way I'm using the tools is wrong) what other diagram will it pull?

P/s. Imo,在这里问这个问题之前,我已经做了足够的谷歌搜索,来自Google的结果似乎也表明Visual Studio仅采用类图,但是我没有看到任何官方文档,因此我在这里问这个问题.

P/s. Imo, I've done enough googling before asking this question here, results from google also seems to say that Visual Studio only takes class diagram but I did not see any official documentation that states that hence I'm asking this question here.

在此先感谢您的帮助.

Thank you in advance for helping.

推荐答案

为较晚的响应表示歉意,但是可以的,您只能从UML类图生成代码,特别是C#代码.这是该主题:

Apologies for the late response, but yes, you can generate code, specifically C# code, only from UML class diagrams. Here's the topic for that:

从UML类图生成代码

仅供参考,我目前在Microsoft Azure上工作,所以自从我从事类图工作以来已经过去了几年.

FYI, I currently work on Microsoft Azure, so a few years have passed since I worked on class diagrams.

这篇关于Visual Studio是否从UML图表生成代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆