non typed dataset and codegen:nullValue="_empty"

  • Thread starter Thread starter Bernie Yaeger
  • Start date Start date
B

Bernie Yaeger

Is there any way to use codegen:nullValue="_empty" in a non-typed dataset?
It would appear that the xsd that the sqldataadapter wizard generates could
be so modified; can it? Also, what about a simple dataset/datatable created
'by hand', without xsd - any way of using this concept with that?

Thanks for any help.

Bernie Yaeger
 
Bernie,

I am not seeing where you are coming from. Of what value would a codegen
prefixed attribute be in an untyped dataset? They are quite separate worlds.

You can stuff a null into an untyped dataset because its untyped.

Kathleen
 
Hi Kathleen,

Tx for your reply.

What I am really trying to do is set up a null conversion, such that if a
null value is encountered, it would return instead string.empty (or as
appropriate for the given data type). I think that it's continually failing
because I am not using a strongly typed dataset, there is no xml and there
is no xsd to make this work. I could of course write to xml and then write
the schema, but I might just as well go all the way and create a strongly
typed dataset, but I was hoping to control null values with regulare ol'
datasets.

Guess I back to 'if not isdbnull(blah blah blah

Bernie
 
Back
Top