MVC UML class diagram

Danny De Boiserie picture Danny De Boiserie · Dec 23, 2012 · Viewed 34.8k times · Source

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.

Answer

Sampath picture Sampath · Dec 23, 2012

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)

enter image description here

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.