Hi i have a Linq to Entity Statement that returns a Zipcode.
and I store this return Zip code in my strongly typed Lists
In my List Zipcode Data type is int
when my Liq statement returns Zipcode there are some NULL and Empty values
and I am not able to convert these NULL and Empty values to int
how can i handle this situation.
I tried something like this
ZipCode= Convert.ToInt32(p.ZipCode ?? "0")
any help is greatly appreciated.
thanks