DBNULL

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

Guest

In the UI, there are some optional field but in the DB I want tto store NULL
instead of empty string. Do I check for empty string for these values in the
business layer when I am going thru each row in the datatable for Data
Validation.
Thanks
 
Empty string isn't a null value.
Yes, I guess (unless your UI controls can store null value) you would have
to resort to "manual" replacament of empty strings to DBNull.Value values.
 
Back
Top