MVC UML class diagram

两盒软妹~` 提交于 2020-01-01 02:46:10

问题


I've have to work on a new project,written in C# mvc,the first thing i would like to do is create an UML class diagram. Is there somewhere an example of how to do this? Most examples show one controller with one view and one model. But in this project there is per controller multiple Views and multiple ModelDto's Thanks.


回答1:


You can do like below by using MS visio or any other UML tool.

Just a sample looks like below (methods and properties should differ)

Like above you can extend the above diagram for more views and models per controller.

i.e. In MVC you can have many Action methods inside a Controller and relevant view and model per Action method (in general).

For more details check Model View Controller Design Patterns

I hope this will help to you.



来源:https://stackoverflow.com/questions/14011271/mvc-uml-class-diagram

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