Visual Studio的类图没有显示关系 [英] Visual Studio Class Diagram not showing relationships

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

问题描述

当我使用了字段(这是用C#3.0中启用)定义我的类属性,类图显示的不是一对一/一对多关系。继承是在图中可见,虽然..

When I define my class properties with out using fields (which was enabled with C# 3.0), class diagram is not showing my one to one/many relationships. Inheritance is visible in the diagram though..

有没有办法来解决这个问题?

Is there a way to fix this?

推荐答案

当你右键点击该字段或属性,您可以选择显示为关联或展示作为收藏协会。

When you right click on the field or property you can select show as association or show as collection association.

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

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