I have read
What is the difference between null and System.DBNull.Value?
INSERT / UPDATE data using DBNull or null?
and similar Q&A but don't quite understand this. The problem:
tableAdapter allow's me storing null into not nullable fields (AllowDBNull = false
).
What I need to check?
I can check for
string.Lenght == 0
string.IsNullOrEmpty(string)
string.text = ""
before update command but want to know why table adapter is letting me storing NULL
it's actually storing someTextBox.Text = "" when needed to throw exception null not allowed for some field.
I have exactly same problem Dataset allowing Null values even when AllowDBNull = False? but there are no solution.
Thanks