Book a Demo

Author Topic: accociation class transformation  (Read 1922 times)

mikirr

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
accociation class transformation
« on: October 02, 2006, 05:28:33 am »
Hi,

I am currently evaluating EA. I am planning to use it for code-generation tasks. I have a couple of questions so far:

I want to transform a class model into C# classes, that contains metadata in C#-Custom Attributes.
For example, assume you have an (0..*) -> (1..*) association.
I want to mark the related collection-attributes of the linked classes with the name of that association.

Should I use and modify the LinkedAttribute-script of the C#-Transformation for that? How can I access the underlying connection in the LinkedAttribute-script then?

When I use an association-class in the model, I notice that it gets transformed into an ordinary class, without the information about the linked classes.

Does the current version of EA not support the expected transformation of association classes?

If I have to write a transformation script on my own, how can an association class be recognized in a transformation script? How is the related association identified?

Regards
Michael