Book a Demo

Author Topic: C# partial class transformation  (Read 2987 times)

VGermscheid

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
C# partial class transformation
« on: September 21, 2010, 03:43:56 am »
I'm working on an effort to generate both XML schemas and C# Partial Classes to handle serialization and am having some difficulty understanding parts of the Transform templates.  There's a function in the Attribute_Property and Linked Attribute templates, %Property(attName,$type)%, that I can't figure out.  It appears to be the active part of creating Property stereotyped operations for these attributes, but can it do more:  For Linked attributes, Id like to set a property (Return Array) or tag that would allow me to declare the variable as a List<>.

Another frustrating bit - an XSD model and a C# model generated from the same class model creates complex types in the schema in a different order than classes in the C# code, making schema validation impossible.

Any help?  Please?
« Last Edit: September 22, 2010, 06:28:24 am by VGermscheid »