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
Server 2008 NLB problem
How to Populate a ListBox Control with Values from an Access Database Table
Exchange 2007 OWA causes 2 audit failures on failed login attempt
Calling a DLL Function Dynamically
Create linked server from MS Sql to oracle server
Filemaker Scheduled Import of Tab Delimited File Not Working
Exchange 2007 Certificate Renewal
Exit Ctrl+Alt+F2
Cisco VPN Client 5.0.07.0290 on Windows 7 64 bit
Validate month and year fields based on current date