Visual Studio的类图没有显示关系

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.