Book a Demo

Author Topic: Generating code from an unspecified association  (Read 2277 times)

kenan820

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Generating code from an unspecified association
« on: September 28, 2005, 02:31:54 pm »
If I generate code (C#) from an association (Associate) between two classes with an unspecified direction, I will get the target class as an attribute of the source class, but I will not get the source class as an attribute of the target class.  If I change the association to a Bi-Directional association, it will generate both in each.  My preference is to not have the directional lines on my diagrams for a bi-directional association, so I prefer the unspecified direction for my lines.  Is there a way to either a) generate the code the same for an unspecified association as a bi-directional association or b) allow me to turn off the arrowheads on a bi-directional association?

Kenan Dalley
Software Architect
CS*STARS

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Generating code from an unspecified associatio
« Reply #1 on: October 02, 2005, 04:41:24 pm »
Unfortunately, I don't think there is much that you can do.  EA is designed to generate only one attribute from an unspecified direction association, and bi-directional associations always show their arrow heads.