I am not very good with linq, seems kind of confusing to me, but I have been making my way through it. I have the following query that I can't seem to get to work.
I get the error:
The value for column 'empl_cctr_id' in table 'temsempl' is dbnull.
The other join might also get the same error as well but with that related tables. Please help.
Dim query = (From empl In EMS_DS.TEMSEMPL
Join cctr In EMS_DS.TEMSCCTR On empl.empl_cctr_id Equals cctr.cctr_id
Join ppcd In EMS_DS.TEMSPPCD On empl.empl_ppcd_id Equals ppcd.ppcd_id
Where empl.empl_userid.Equals(text.ToString.ToUpper)
Select empl.empl_sep_dt, cctr.cctr_cd, ppcd.ppcd_desc).ToList