Microsoft
Software
Hardware
Network
Question : C# DBNUL
Hi Experts
I need to find a solution to pass DB NULL to Oracle DB using C#
VB Example: txtAddress1 = IIf(IsNull(rsMemMast!memad
d1), "", rsMemMast!memadd1)
In C#, am sure I cant write like this. But it is tedious job to check each field whether nullorempty and then pass it as DBNULL. What I would like to do is
write one common function
which should work like this.
I pass the data to function and if value passed is null, it returns DBNULL, else the value is passed to DB for insert. In other words am trying to deal with this issue globally from single function.
Help Please
Answer : C# DBNUL
1: 2: 3: 4:
object GetDBValue(object value) { return value == null ? DBNull.Value : value; }
Random Solutions
Installing SSL certifcate on exchange 2010
Get CPU Cores Amount
After moving mailbox to Exchange 2007 lost all Outlook rules
Avoid pinned programs expanding in Windows 7 start menu
Installer error 2869 Windows 7
PHP: Decode Modified Base64
HiJackThis Analysis. Also "NoIE4StubProcessing"
dateDiff - combining a date selection and a time selection
Communigate Pro bounce back "The message was not delivered because the return address was refused"
Printing multiple divs using java script