Hi, I have tried to use the annotation nullValue as described in the article:
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguid e/html/cpconusingannotationswithtypeddataset.asp> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide /html/cpconusingannotationswithtypeddataset.asp Unfortunately when I am trying to use it I am getting an error: "Custom tool error: Failed to generate code. System error." It happens when my element also has an msdata:DataType="System.Guid..." annotation. Any suggestions? Below is the XSD file. Thanks, Marek ============================================= <?xml version="1.0" encoding="utf-8" ?> <xs:schema id="Dataset1" targetNamespace="http://tempuri.org/Dataset1.xsd" elementFormDefault="qualified" attributeFormDefault="qualified" xmlns="http://tempuri.org/Dataset1.xsd" xmlns:mstns="http://tempuri.org/Dataset1.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:codegen="urn:schemas-microsoft-com:xml-msprop"> <xs:element name="Dataset1" msdata:IsDataSet="true"> <xs:complexType> <xs:choice maxOccurs="unbounded"> <xs:element name="MyType"> <xs:complexType> <xs:sequence> <xs:element name="Field1" codegen:nullValue="_null" type="xs:string" minOccurs="0" /> <xs:element name="Field2" msdata:DataType="System.Guid, mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" codegen:nullValue="_null" type="xs:string" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> </xs:choice> </xs:complexType> </xs:element> </xs:schema>
