Book a Demo

Author Topic: How to generate C# code 1...* relationship in EA?  (Read 2877 times)

farooq

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
How to generate C# code 1...* relationship in EA?
« on: July 20, 2011, 07:28:39 pm »
Dear all,

I have two classes Order and OrderHistory.

class Order{
  Guid m_id;
}

and second is OrderHistory is supposed to have a generic list of Order and the final generated code of OrderHistory needs show this modeled relationship to look like the following code:-

public class OrderHistory {

     private System.Collections.Generic.List<Order> m_orders;

}


Q no 1) How can this relationship be modeled in EA and what specofoc options to set to get this code generated?

Q no 2) How can I make EA to recognisze such relationships and draw appropriate connector links between  the source/target classes when I import some exisiting code?


Q no 3) How can i setup options and model the relationship that generates the Dictionary based output like following

private Dictionary<string, Order> _namedOrders;
« Last Edit: July 21, 2011, 02:56:27 am by farooqmian »