Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to pass null values

707502Aug 12 2010 — edited Sep 6 2010
I am working on asp.Net application with the backend in Oracle. I am using ODP.Net to interact with the oracle server.

I have written oracle store procedure to do DML Operation.

In oracle tables the data type of all my Primary Key and Foreing Key tables is

Number(12). At the fron end (in C#), I alwasy declare a long for any of the foreign/Primary key

Like:

long PK;

When there is a need to insert null value in the foreign key, I face problem as we can not assign null values to int/long.

What to do?

I wonder why it is so that we can not assign null values to INT/LONGs in C#
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 4 2010
Added on Aug 12 2010
2 comments
1,924 views