Book a Demo

Author Topic: .Net Framework Class Libraries  (Read 7391 times)

adriang

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
.Net Framework Class Libraries
« on: January 21, 2004, 06:59:50 am »
Is there currently a way to import the .Net Framework class libraries into an EA Project?

oliverson

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: .Net Framework Class Libraries
« Reply #1 on: January 23, 2004, 06:44:42 am »
I'm interested in this as well.
I'm just evaluating the product at the moment and it really puts Visio for Enterprise Arthitects (VS.NET) to shame.  Really quick and precise.
However.
When specifying return types or parameters for operations, I'd like to relate to the .NET framework classes as well.  For instance, it must be a common requirement to return the type System.Data.DataSet from a method.  The obvious solution is to create your own DataSet type before hand but its a bit excessive for every type you wish to use.
cheers
« Last Edit: January 23, 2004, 07:04:01 am by oliverson »

Oliver Michalski

  • EA User
  • **
  • Posts: 116
  • Karma: +0/-0
    • View Profile
Re: .Net Framework Class Libraries
« Reply #2 on: January 24, 2004, 09:38:44 am »
 Hi adriang,

try the AssemblyMetadata2Xmi Converter at
http://www.anticipatingminds.com/products/assemblymetadata2xmi/assemblymetadata2xmi.aspx

Regards

oliverson

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: .Net Framework Class Libraries
« Reply #3 on: January 25, 2004, 05:15:03 am »
Thanks for this.
There is also the utility called RE.Net from www.lotontech.  However I think the AssemblyMetaData2XMI Converter is better as it gives you the class members for free whereas you have to pay 20 GPB for the RE.Net product (the Lite version gives you the types only, not the members)
I've generated XMI for .NET Framework classes and have imported this XMI package into Enterprise Architect.  Bingo, the types and members are all there.  However, all I get to see is the Private types from the XMI import.  I'm an EA newbie and am evaluating the product.  Like what I see so far.  How can I 'filter' so that I can see all members, irrespective of their access modifiers?
regards

sperry

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: .Net Framework Class Libraries
« Reply #4 on: February 26, 2004, 05:55:23 am »
I tried using this tool on System.dll and received an 'Ambiguous Reference' error.  What am I doing wrong?

-SP

-SP

fluxtah

  • EA User
  • **
  • Posts: 144
  • Karma: +0/-0
    • View Profile
Re: .Net Framework Class Libraries
« Reply #5 on: February 27, 2004, 02:14:39 am »
I think my tool is better, it handles the protected members and also deals with a few stereotypes.

http://www.sunmoonsystems.com/downloads.php
« Last Edit: February 27, 2004, 02:14:59 am by fluxtah »

wmac

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Re: .Net Framework Class Libraries
« Reply #6 on: March 02, 2004, 11:08:13 pm »
fluxtah

Really thank you for sharing framework template. It's kind of you.

By the way I have a question.

I have imported a single form application (a button and a textbox) into .NET EA project.

Now how should I put Button, Form and EditBox classes on my class diagram (I ctrl+drag them from system.windows.forms to classdiagram) so that it can recognise the associaions? Or I should do the associations myself?

Regards,
Mac


fluxtah

  • EA User
  • **
  • Posts: 144
  • Karma: +0/-0
    • View Profile
Re: .Net Framework Class Libraries
« Reply #7 on: March 03, 2004, 12:53:01 am »
Hiya, thanks, I am glad the framework model helps :]

I am not sure on import if it would maintain the associations, I will have to test this :/ I would hope that the XMI exporter would do this, if not then you can just drag them as you described onto your diagram.

Then if you just manually drag the association links from the form to the button and form to the edit box respectively.

Double click on the connectors and set the target role (which will be the button and edit box i think) to the member that they are associated to within the Form Class.

When doing this without reverse engineering you do'nt even need to add the members to the source class which is quite handy :]

I have'nt got EA set up at work yet, so I can not draft a quick example diagram :(

hth

Fluxtah

« Last Edit: March 03, 2004, 12:54:52 am by fluxtah »