NULL values


Author
Message
Tim Dol
Tim Dol
StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)
Group: Forum Members
Posts: 340, Visits: 1.4K
I took at a number of forum posts but I can't seem to solve my issue with Nulls. I don't use nulls a whole lot.

I have a field in my notes table called ContactFK. (Integer,Nullable).  It's a foreign key to my contacts table. The contact is optional on a note.  I set the NULL value option in the BO Mapper to 'Use Nullable Generic'.

When I set my field to nothing I get an error 'Specified Cast is not valid' on the following line of code:

CType(component, CRMEntryBO).ContactFK = CType(Value, Nullable(Of System.Int32))

Is there something wrong with this setup?  I used Nullable generic a while back for a System.Double and it worked fine.

Thanks

TIm

 


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search