locked
Class Diagram - Show Fields with their types RRS feed

  • Question

  • I am running the training video:

    3 - Exploring the Classes Generated from an Entity Data Model

    and in the video, in the ClassDiagram1.cd, when I open up the fields in the classes, for example, the SalesOrderHeader (approx. 2:12 into the video), the fields are displayed with their types:

    For example:  the video shows:

    _AccountNumber : string

    _BillToAddressId : int?

    etc.

    When I run Visual Studio 2010, I just get the field name, no type info:

    _AccountNumber 

    _BillToAddressId 

    Question:  How do you get the type " : string" or type " : int?" to show in the class diagram?  It just shows the Field name, and no type.

    Thanks

    -Dave

     

     

     

     

    Wednesday, May 11, 2011 7:26 PM

Answers

  • Hi Dave,

    Welcome to the MSDN Forum.

    The following steps should help you to show the name and the type at the same time.

    1. open the class diagram file.

    2. click the class diagram menu on the top of VS.

    3. go to the change members farmat.

    4. choose the "display name and type"

    I hope this will be helpful.

    Best regards,


    Mike Feng [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, May 13, 2011 2:52 AM
    Moderator

All replies

  • Hi Dave,

    Welcome to the MSDN Forum.

    The following steps should help you to show the name and the type at the same time.

    1. open the class diagram file.

    2. click the class diagram menu on the top of VS.

    3. go to the change members farmat.

    4. choose the "display name and type"

    I hope this will be helpful.

    Best regards,


    Mike Feng [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, May 13, 2011 2:52 AM
    Moderator
  • ROTFLOL!  "That was easy".

    As usual, I thought it would be something much more complicated - so I installed VS2010-SP1 thinking that would fix it.

    Thanks for the help, Mike.

    -Dave W.

    Saturday, May 14, 2011 10:28 PM