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
Sending and receiving limits on Exchange users internally and externally
How do I modify textboxes/labels in an asp:repeater footertemplate through javascript (client side)
Dell PowerEdge Perc 4e/Di RAID 1 expansion
VMware Vcenter server connection to iSCSI SAN network
OnTextChanged TextBox Issue
Access Forms
COMPAQ V6000 HP, WON'T BOOT WITH BATTERY INSERTED, DC BLUE LIGHT PULSES DIM
VLAN Configuring on a Powerconnect 5324
Best way to configure Syncback with a USB hard drive rotation
Standard template for asp.net application