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
Xerox Scan to email issue - Gmail Google Apps Premiere
sql tuning
Test javamail through command line
Overlapping digram borders
Can't print to Dymo Labelwriter 400 turbo after adding labelwriter 450 turbo drivers on windows 2003 terminal server
Cloud Computing
"The connection to Microsoft Exchange is unavailable. Outlook must be online or connected to complete this action."
The marquee progressbar hangs as the next line of the code executes
Do WPF and MVP go together?
Oracle Forms 11g - ORA-12154: TNS error