dbNull


Author
Message
Daniel Essin
Daniel Essin
StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)
Group: Forum Members
Posts: 235, Visits: 309
I hate to keep harping on this, but the current behavior for handling null string fields is a real PAIN in the patoot.



The default behavior should be that these fields are retrieved without throwing an exception, i.e. they should return string.Empty if dbNull is retreived. If should require an override to enable the bo to throw the "Unable to cast object of type 'System.DBNull' to type 'System.String'." exception.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search