R
Robert G
I am using MySql and create a new table that has a date/time field. I set
it to accept nulls as well.
Created a new XSD dataset in ASP.NET but I cannot set the NullValue property
to anything but "(Throw Exception)". (The DefaultValue property is
<DBNull>.)
I then created all of the typical class methods.
When I call the Insert method I tried passing system.dbnull.value but it
will not allow me to. It says that the type 'system.dbnull' cannot be
converted to 'date'.
2 Questions:
1. How can I change the NullValue property in my dataset to something other
than 'Throw Exception'?
2. How can I pass a null to my date/time field?
Thanks!
it to accept nulls as well.
Created a new XSD dataset in ASP.NET but I cannot set the NullValue property
to anything but "(Throw Exception)". (The DefaultValue property is
<DBNull>.)
I then created all of the typical class methods.
When I call the Insert method I tried passing system.dbnull.value but it
will not allow me to. It says that the type 'system.dbnull' cannot be
converted to 'date'.
2 Questions:
1. How can I change the NullValue property in my dataset to something other
than 'Throw Exception'?
2. How can I pass a null to my date/time field?
Thanks!