jessethebuilder
Member
- Joined
- Jun 2, 2011
- Messages
- 16
- Programming Experience
- 3-5
I am working with a Webservice api. The primary key field demands an Integer, but to create a new record, I have to send it a null value.
My understanding is that .Net defines strongly typed, native Data Types, and the Integer is 32 Bits, so 0 to 4 Million-what-ever-it-is (unsigned). I cannot figure a way to express Null in those 32 to bits (to describe my problem, at the lowest level I can).
In other words, what is a Null value in a VB.Net Integer?
I have tried to play around with Nullable(of Integer) (or Integer$), but I cannot express that as a Null. If I try to leave it undefined, I get a Compile Time error of "Nullable type must have a value" (An ironic and infuriating error if there ever was one).
I am quite sure this is a common problem. How do I express Null in an integer to a database through a Soap Request? The node "PrimaryKey" contains the value "null" as its inner XML in a proper Soap Request (as I have found by debugging with Fiddler2), but how do I express this without grabbing the Soap Request and doing some text editing?
My understanding is that .Net defines strongly typed, native Data Types, and the Integer is 32 Bits, so 0 to 4 Million-what-ever-it-is (unsigned). I cannot figure a way to express Null in those 32 to bits (to describe my problem, at the lowest level I can).
In other words, what is a Null value in a VB.Net Integer?
I have tried to play around with Nullable(of Integer) (or Integer$), but I cannot express that as a Null. If I try to leave it undefined, I get a Compile Time error of "Nullable type must have a value" (An ironic and infuriating error if there ever was one).
I am quite sure this is a common problem. How do I express Null in an integer to a database through a Soap Request? The node "PrimaryKey" contains the value "null" as its inner XML in a proper Soap Request (as I have found by debugging with Fiddler2), but how do I express this without grabbing the Soap Request and doing some text editing?