Click here to Skip to main content
15,899,025 members
Articles / Database Development

Making It Easier to Replace Null with DBNull.Value

Rate me:
Please Sign up or sign in to vote.
4.78/5 (15 votes)
16 Mar 2023CPOL2 min read 31.4K   13  
Function to help convert null to DBNull.Value for inserting in database
I often have the need to convert a null to a DBNull.Value for inserting into database, this function helps.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) RADDev Publishing
United States United States
"Everything should be made as simple as possible, but not simpler."

Comments and Discussions