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
MS Access global event handler
How to configure the network printer in the FreeBSD 8?
Exchange 2010 and Outlook 2003 subfolder display bug
Flash Viewer System Requirments
creating system restore point
Exchange 2010 on a domain controller 2008 R2 for 2 users?
exceed problem
body fluids after swimming session
SBS2008 disable xp client firewall via GPO
We have a HP Dat 72 storageworks usb tape drive not working