This project is read-only.

Contract Name Concatenation

May 19, 2010 at 9:21 PM

Hi everyone

I'm wondering if there is a way to turn off annoying data contract class name concatenation. For example I have the following schema parts

<xs:complexType name="Parent">

   <xs:element name="Item">

  <xs:complexType>

<xs:choice>

<xs:element name="PossibleItem1"/>

..more choices

 </xs:choice>

</xs:complexType>

</xs:element>

</xs:complexType>

 

I seem to be ending up with Dto names generated as (for each of the three types...)

Parent

ParentItem

ParentItemPossibleItem1

Such that you end up with hideous code to work with possibleitem1 whcih looks like the following

Parent.ParentItem.ParentItemPossibleItem1

Thoughts anyone?

Thanks in advance :)