MVC UML类图 [英] MVC UML class diagram

查看:871
本文介绍了MVC UML类图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须处理一个用C#mvc编写的新项目,我想做的第一件事是创建一个UML类图. 有某个如何执行此操作的示例吗? 大多数示例显示了一种具有一种视图和一种模型的控制器. 但是在这个项目中,每个控制器有多个视图和多个ModelDto 谢谢.

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.

推荐答案

您可以通过使用MS visio或任何其他UML工具在下面完成操作.

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.

(在MVC中),Controller内可以有许多Action方法,并且每个Action方法通常都有相关的视图和模型.

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.

这篇关于MVC UML类图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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