Book a Demo

Author Topic: C# & XSD Model Transformations & code gen  (Read 2035 times)

VGermscheid

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
C# & XSD Model Transformations & code gen
« on: September 23, 2010, 07:18:48 am »
I've tried this one before and got no response, so I'll try again.  I'm trying to customize transforms from a base class model to C# partial classes and XML schemas and have two issues:
  • In the C# transformation, the macro "%Property  $name,$type)%" is called from both the Linked Attribute and Attribute__Property templates and appears to be where the Property stereotyped Operations are created.  Is there some way to set the Return Array attribute (or add tags to control code generation) on the Operation?
  • Is there any way to ensure that the ordering of elements in the generated schemas matches the order of the elements in the C# model & code?

VGermscheid

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: C# & XSD Model Transformations & code gen
« Reply #1 on: September 24, 2010, 12:37:48 am »
Follow up:  I upgraded from EA 7.5 to 8 and now have a Property template, so I think I can work that out.  I still have one issue with the C# transformation:  Why does it add the Linked Attribute properties before the Class Attribute properties when transforming?