How do I query a typed datatable using linq to see it contains any number of the defined array.
string[] arInts = {1, 2, 3};
I wanted to query the table and find if it contains any number in array arInts
How do I query a typed datatable using linq to see it contains any number of the defined array.
string[] arInts = {1, 2, 3};
I wanted to query the table and find if it contains any number in array arInts
 
    
     
    
    This looks like the question here:
Linq to Entities - SQL "IN" clause The following query should work:
var q = from t in tableName
               where arInts.Contains(t.fieldName)
               select t;
 
    
    