Book a Demo

Author Topic: namespaces and generalization link (C#)  (Read 2071 times)

Dmitriy

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
namespaces and generalization link (C#)
« on: April 08, 2005, 01:06:44 pm »
It looks like EA can not automatically put generalization link into logical model diagram if parent class has a namespace prefix in the declaration. For example, if the declaration looks like:

public class ChildClass : SomeNamespace.ParentClass
{
        ...
}

The ChildClass box won't have visual link to ParentClass box. You have to put it manually. Synchronization update between diagram box and the source file does not help. Both, ChildClass and ParentClass are in the same namespace.
If you declare above class as:

public class ChildClass : ParentClass
{
   ...
}

everything works fine and expected link will be there.

Does anyone have an idea why?

Thanks,

Dmitriy.

TrtnJohn

  • EA User
  • **
  • Posts: 176
  • Karma: +0/-0
    • View Profile
Re: namespaces and generalization link (C#)
« Reply #1 on: April 08, 2005, 04:29:47 pm »
In EA, your packages correspond to the namespace of the logical view.  If your package structure doesn't match your code namespace structure EA can't find the class.