Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - chacha

Pages: [1]
1
General Board / Re: convert data model to class diagrams?
« on: May 12, 2004, 05:23:20 pm »
Would there be a way to automate this process, by setting up a map between sql types and c# types.  I could then iterate through all tables and automatically remove their stereotypes and modify the attribute types.  I have nearly 100 tables and almost 750 attributes total.  This would take a long time.  Plus, with the naming convention I use I could use the script to mask out tables that don't map directly to domain objects.  The rest I could add as needed.

2
General Board / Re: convert data model to class diagrams?
« on: May 06, 2004, 11:21:38 pm »
>> Once you have done them all Save the diagram (until the diagram is saved EA still thinks you are working with a table stereotyped class, autosave may change this)

This is what was throwing me off.  I thought that it would regenerate the layout when you change the stereotype.  No problem.  I guess I am glad it doesn't do that.

3
General Board / convert data model to class diagrams?
« on: May 05, 2004, 04:43:26 pm »
Hi,

I am an absolute newbie to EA, I started evaluating today.  My big hope was that this product would be able to take a complex data model and allow me to convert the tables into classes, then visually create an inheritance heirarchy in uml from a multi-table inheritance ddl model.  Then generate the c# code to implement the class skeletons.

So, I have created a data model by importing our ddl code.  I would like to now create a class diagram from that relational model.  Then I can go in and manually create the proper inheritance model.  Can this be done in EA?

The reason I ask this is that it seems that a table stereotype can't be used to generate c# code, nor does it support the use of inheritance.  

BTW, I am very impressed with the feature set EA has in it's offering.

4
I have never used the automation capabilities before.  Is it possible to automatically...

1. create a new diagram
2. copy the <<table>> classes in my data model to the new diagram
3. iiterate through the <<table>> classes in my new diagram and...
   a) remove each stereotype from each <<table>> class
   b) convert the sql types to their requisite c# types
   c) remove the classes that correspond to a particular naming convention for lookup tables
4. generate the c# domain classes

Would anyone be willing to show me how to do this?  I am short on both time and ingenuity :)

Pages: [1]