Kevin (and any others who may encounter this issue):
After much agonizing and trial and error, I have found a workaround
that enables the client to capture the nullValue attributes.
Assuming a typed datset named myData, generate the dataset. In the
myData.vb file, modify the Init_Class procedure for each datatable in
your dataset by including the following for any nullable fields. (Here
I am assuming fields called myString, myInt, myDate):
columnmyString.ExtendedProperties.Add("nullValue", "_empty")
columnmyInt.ExtendedProperties.Add("nullValue","0" )
columnmyDate.ExtendedProperties.Add("nullValue,"20 00-01-01")
Save the myData.vb file. Delete any existing web references that call
for the myData schema, and create a new web reference. If you check
the myData.xsd file generated, as well as the Reference.vb file, you
will see that the attributes are preserved, and the calls to the
StrongTypingException in the Reference.vb file no longer exist.
One caveat here is that this should be done after you have finalized
the structure of your typed dataset. Regenerating the .xsd file on the
server will regenerate the .vb file on the server, and you will have to
add the ExtendedProperties again.
Hope this helps others. Is Microsoft fixing this in 2.0?
Jeff
Kevin Yu [MSFT] wrote:
> Hi Jeff,
>
> I'm sorry, but currently there is nothing we can do on this issue. I
> suggest you try to contact Microsoft PSS for more information on this issue
> to see if they can work out a fix for you. Here is their contact
> information.
>
> http://support.microsoft.com/default...;OfferProPhone
>
> Kevin Yu
> =======
> "This posting is provided "AS IS" with no warranties, and confers no
> rights."