How to Setup StronglyTyped dataset column with DataType System.Object??

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do you set up a create an xml schema column element and define it as either an System.Object or as a System.Type in the xml designer?

I have tried anyType but it complains when previewing the dataset. Any thoughts????
 
Well I figured it out..
Seems strange to me but you put the Element type as String and have to use an attribute in the xml Editor.

<xs:element name="FromObject" msdata:DataType="System.Object, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" /

This works...
 
Back
Top