Associations in Visual Studio 2008 class diagrams

When I generate class diagram in Visual Studio 2008 using View Class Diagram I always get a bunch of class boxes without methods. The only lines in the diagram are inheritance.

Is it possible, and if so how do I get associations (aggregation and composition might not be possible, but at least an association line indicating they are some how connection. Preferably with an arrow) visualized?

And is it possible to change it so that methods are shown after generating a diagram by default?

-------------Problems Reply------------

To show a property as an association just right click on a property in the diagram editor (not the Class Details panel) and choose either "Show as Association" or "Show as Collection Association". Obviously you will need to make the property visible in the diagram editor first. Typically I only show public properties.

And I don't believe there is a way to always show associations.

Category:visual studio Views:0 Time:2010-07-21

Related post

  • Visual Studio 2008 class diagram creates empty properties, not autoproperties 2009-12-21

    I'm using a Class Diagram in Visual Studio 2008 to create some classes with properties. I notice that when I create a new property in the Class Diagram, it comes out in code like this: public DateTime DateBilled { get { throw new System.NotImplemente

  • Visual Studio 2008 Class Diagram designer 2009-08-10

    I'm using VS class diagram designer. How can I get the blue lines as that in the following image? Thanks! --------------Solutions------------- You have to right click on properties and select show as association or show as collection association, as

  • Visual Studio 2008 class diagrams are malformed and will not open 2013-02-10

    Hi, I get a VS message saying: "ee.cd cannot be opened because its content is malformed. Try opening the file in an xml editor to fix the problem below: There is an error in XML document (1,3). The type initialize 'System.Xml.Serialization.xmlSeriali

  • Automatically Create UML diagrams from Visual Studio 2008 2009-10-29

    Is there any tool\Software that make automatically UML diagrams from an existing visual studio 2008 project (C#). (Tools work with Visual Studio 2010 also appreciated.) *UML Diagrams may be all types eg, object, class, domain, collaboration, componan

  • Can not generate a class diagram from a project referencing a web service in Visual Studio 2008 2010-07-21

    I have a question concerning the class generation in Visual Studio 2008. I use a web service which is added using Add Web Reference. It works great and all the classes seem to have been generated successfully. When I try to generate a class diagram u

  • How to generate Class Diagram in Visual Studio 2008 2012-02-08

    Now , I am working with Visual Studio 2008. I want to Create Class Diagram. I don't want to design the class diagram. I mean I want to generate class diagram automatically by using VS 2008. Please help me. --------------Solutions------------- Right c

  • Visual Studio 2008 on Windows 7 beta 2009-01-23

    I'm considering a full upgrade to Windows 7 Beta, thus wiping Vista from my HD. Will Visual Studio 2008 run well on Windows 7? I've read some forum posts that there were problems. --------------Solutions------------- Windows 7 is very stable and very

  • Good UML designer for Visual Studio 2008 Professional Edition with code generation 2009-03-09

    What is the cheapest tool I can buy to allow visual UML design that has code generation abilities bearing in mind it's currently Visual Studio Professional, not Team studio. I'm trying to achieve the ability of visually creating the namespaces, class

  • Does Visual Studio 2010 RC play nice with Visual Studio 2008? 2010-02-18

    Does Visual Studio 2010 RC play nicely with Visual Studio 2008? I am wondering if I need to setup a Virtual Machine to play with VS 2010 or if I can just install it on my Dev machine. If it messes up VS 2010 then that is sad but ok. If it messed up V

  • Visual Studio 2008/2010 - Professional vs Team System 2010-02-25

    Ok, I know this isnt a programming question, but I think its really important to understand the differences to be a more productive developer...so please don't close this question!! And yes, I do feel stupid for asking this question! Have only ever w

  • Visual Studio UML Class Diagram Generator 2010-04-09

    I was wondering if there was a software that would generate UML class diagrams from my project files (C#) in Visual Studio 2008 Professional? Like a plugin of sorts? I have checked previous posts and did not see anything useful on the first glance. E

  • Visual Studio UML Sequence Diagram 2010-04-12

    I was wondering if there was a Sequence Diagram generator for C#? Im using Visual Studio 2008 Professional. If not is there a quick and simple software? Im finding Enterprise Architect and Visio a bit too cryptic for a beginner. I have found the Clas

  • Visual Studio 2008 Window layout annoyance 2008-08-13

    I'm having a weird issue with Visual Studio 2008. Every time I fire it up, the solution explorer is about an inch wide. It's like it can't remember it's layout settings. Every un-docked window is in the position I place it. But if I dock a window, it

  • Visual Studio 2005 Macros stop working when Visual Studio 2008 is installed 2008-08-13

    I have a number of macros written for Visual Studio 2005, but they have since stopped working once I installed Visual Studio 2008 on my computer. No error is returned by the macro when I try and run it, and the environment merely shows the hourglass

  • Is it possible to coax Visual Studio 2008 into using italics for comments? 2008-08-19

    I'm quite used to my IDE setup in Delphi 7, where I have my comments rendered in italics. This doesn't appear to be possible in VS2008. There's only an option for bold font, not italics. Is there some kind of registry hack or font magic I can perform

  • What is the purpose of the designer files in Visual Studio 2008 Web application projects? 2008-08-26

    There is a conversion process that is needed when migrating Visual Studio 2005 web site to Visual Studio 2008 web application projects. It looks like VS2008 is creating a .designer. file for every aspx when you right click on a file or the project it

  • Compatability between Windows Vista and Visual Studio 2008 2008-08-26

    I am wondering if anyone else is experiencing these same issues: My main dev machine is a Dell, running Vista Home Premium and Visual Studio 2008 - both fully patched / up-to-date. There are some quirks, such as the play/pause media controls on my ke

  • Using Visual Studio 2008 Web Deployment projects - getting an error finding aspnet_merge.exe 2008-08-26

    I recently upgraded a VS2005 web deployment project to VS2008 - and now I get the following error when building: The specified task executable location "bin\aspnet_merge.exe" is invalid. Here is the source of the error (from the web deployment target

  • What is the difference between Build Solution and Batch Build in Visual Studio 2008? 2008-08-29

    What is the difference between Build Solution and Batch Build in Visual Studio 2008? --------------Solutions------------- The key point which seems to be missed in both the existing answers is that batch build allows you to build multiple configurati

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.073 (s). 11 q(s)