Visual Studio generate code from UML diagrams?

*爱你&永不变心* 提交于 2020-01-04 02:06:57

问题


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.

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

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, 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.


回答1:


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:

Generate code from UML class diagrams

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



来源:https://stackoverflow.com/questions/42128699/visual-studio-generate-code-from-uml-diagrams

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!