I’m trying to join two tables using linq to sql. I am getting error on join keyword that "Error 14 The type of one of the expressions in the join clause is incorrect. Type inference failed in the call to 'Join'."
var query = (from es in Company.Employee_Salary
join ed in Company.Employee_Details on es.Employee_ID equals es.Student_ID
orderby es.Employee_ID
select new { es.Month }).ToList();
Anchal Kesharwani
20-Sep-2014What if you cast the id that is an int to a string before comparing?