Book a Demo

Author Topic: Class Association Link  (Read 8556 times)

fluxtah

  • EA User
  • **
  • Posts: 144
  • Karma: +0/-0
    • View Profile
Class Association Link
« on: January 31, 2004, 11:25:04 am »
Hiya,

Realy new UML newbie here, I have 2 classes and I want to associate them with the association link, I drag the link from one class to the other, then when I forward engineer, it implements the assocation as a public decleration.

Code: [Select]
using System.Data;


namespace test {
     public class Class1 {

           public DataTable DataTable;

           public Class1(){

           }

           ~Class1(){

           }

     }//end Class1
}//end namespace test


The problem is it's named it DataTable which is the same name as the type DataTable, I tried making an assocation between a Class and an instance of the DataTable Class but it did'nt implement the assocation at all on forward engineer.

Any idea how to rename or set the name of it so it forward engineers something like ' public DataTable dataTable' ?




fluxtah

  • EA User
  • **
  • Posts: 144
  • Karma: +0/-0
    • View Profile
Re: Class Association Link
« Reply #1 on: January 31, 2004, 11:43:47 am »
I have found the answer to the prob now :] You have to set Source Role or Target Role in the association properties dialog.

- Fluxtah