Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 16th, 2012  |  syntax: None  |  size: 0.58 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. linq to entity join on string equals int
  2. var personalInfoQuery = from t in crnnsupContext.Tombstones
  3.                                     join i in crnnsupContext.InitialEducations on t.InitialEducation equals SqlFunctions.StringConvert((double)i.InitalEducationID)
  4.                                     where t.RegNumber == 25952
  5.                                     select new CPersonalInfo
  6.                                     {
  7.                                        Tombstone = t,
  8.                                        InitialEducation = i
  9.                                     };