I want to join 2 tables, which they have 2 same columns. I have tried this but got error with on new {} equals new {}.
My Code:
var results = from table1 in table.AsEnumerable()
join table2 in comment.AsEnumerable()
//Comment
on new {table1.Field<string>("SignalName"), table1.Field<int?>("MessageID")}
equals new {table2.Field<string>("SignalName"), table2.Field<int?>("MessageID")}
into prodGroup
from table3 in prodGroup.DefaultIfEmpty()
select new
{
// something is there
};