简体   繁体   English

Visual Studio从UML图生成代码?

[英]Visual Studio generate code from UML diagrams?

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 2015从UML图生成代码。从我所做的,我在生成代码之前创建了用例,活动,序列和类图。

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? 所以我的问题是,Visual Studio在生成代码时只会引用类图吗?

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. 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. Imo,我已经做了足够的谷歌搜索,然后在这里提出这个问题,谷歌的结果似乎也说Visual Studio只采用类图,但我没有看到任何官方文档说明因此我在这里问这个问题。

Thank you in advance for helping. 提前谢谢你的帮助。

Apologies for the late response, but yes, you can generate code, specifically C# code, only from UML class diagrams. 对于迟到的响应抱歉,但是,您可以仅从UML类图生成代码,特别是C#代码。 Here's the topic for that: 这是主题:

Generate code from UML class diagrams 从UML类图生成代码

FYI, I currently work on Microsoft Azure, so a few years have passed since I worked on class diagrams. 仅供参考,我目前在Microsoft Azure上工作,因此我在课堂图上工作了几年。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM