title: Dynamic where clause for joined System.Data.DataTable in Linq C#
body: <p>I'd like to create a dynamic where clause for variable amount of columns. Can this be done?</p>
  
  <p>I think I've looked at all the posts related to this topic but still cannot find the answer.</p>
  
  <pre><code>var results = from table1 in dt1.AsEnumerable()
                join table2 in dt2.AsEnumerable() on table1.Field&lt;int&gt;("ID") equals table2.Field&lt;int&gt;("ID")
                where table1["ColumnA"].ToString() != table2["ColumnA"].ToString() ||
                      table1["ColumnB"].ToString() != table2["ColumnB"].ToString() || 
                      table1["ColumnC"].ToString() != table2["ColumnC"].ToString()
                select table1;
  </code></pre>