生成C#类的UML图 [英] Generate UML diagram from C# class

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

问题描述

我有NHibernate的生成的类的BO一个MVC项目坚持到SQL数据库运行。我想使现有的代码到UML图这样我就可以开始与代码生成公用事业玩弄

I have nHibernate-generated classes functioning as the BO for an MVC project persisting to a SQL db. I'd like to render the existing code into UML diagrams so I can start playing around with code gen utilities.

类似什么问的here 仅适用于SQL / NHibernate的 - 所以提出的从C#源或DLL 以及这真的非常接近生成UML类图工具 - 除了最后的答案有所有的2岁。当然,因为知识的主体不断扩大。

Similar to what's asked here only for SQL/nhibernate - SO suggests Tools for generating UML class diagram from C# source or dll and that's really very close - except the last answer there is all of 2 years old. Surely the body of knowledge has expanded since.

推荐答案

无需工具,右键单击您的项目名称,然后选择的查看类图的,它会自动生成所有的类的列表。从那以后,我会删除你不关心任何类,扩大你关心,希望得到你开始的。 我假设你使用的Visual Studio 2010

No tool is required, right-click your project name then select View Class Diagram, it will automatically generate a list of all your classes. After that I'd delete any classes that you don't care about, and expand the ones you do care about, hope that gets your started. I'm assuming your using Visual Studio 2010

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

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