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
Mitel Teleworker One Way Audio
automatically set user rights in folder
How to determine hard disk activities
Can't access Exchange 2003 OWA from Internet
I/O error reported on file system /oracle/P1U aix hdisk path vio
Editing the Windows Message "Your Account has Expired. Please contact your system administrator" for Windows XP Professional
Sharepoint 2010 - Manage Content & Structure ...Where is it?
Configuring Exchange Mail on Ipad
stop error oxoooooo7b(OxF78D2524,OxC0
000034 will not load XP setup!!!!!!!
Ubuntu default chat client logs