Book a Demo

Author Topic: c# collection  (Read 2512 times)

alaino

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
c# collection
« on: June 21, 2006, 12:27:48 am »
Hello,
I am testing Enterprise architect with Visual studio 2005.

I would like to generate the following c# code:

public class myclass{

      private List<myclass> myVar;

       public List<myclass> MyProperty
       {
           get { return myVar; }
           set { myVar = value; }
       }
}

It is possible, but without define a association.
And we I import code to EA, it generates no association, it generates the property.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: c# collection
« Reply #1 on: June 22, 2006, 03:01:58 pm »
At least for the time being these associations need to be modelled manually, and properties can't be created directly from the association.

Look at http://sparxsystems.com.au/EAUserGuide/index.html?settingcollectionclasses.htm for a description of how to set up this sort of association.