Inherited class in an included schema

Dec 10, 2010 at 3:35 PM

I have a problem with generating an inherited class  included from another schema. I tried to set the "Exclude included types" but still the inherited classes are generated.

 

<xs:include schemaLocation=".\Examination.xsd" >

 <xs:element name="TestDs" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true">

 <xs:complexType>

          <xs:complexContent>

            <xs:extension base="Examination">

              <xs:sequence>

              	<xs:element name="Patient" type="Patient" maxOccurs="1"> </xs:element>

		</xs:sequence>

               </xs:extension>

         </xs:complexContent>

         </xs:complexType>

    </xs:element>

is generated to:

public partial class TestDs : Examination
 

but everything in Examination is generated once again in TestDs.

 

Of course, I can fix this manually but then I cannot use the custom tool to handle updates. 

Am I missing something or can't it be done with this version (3.4 VS 2010)?

 

 Thanks,

Helene