title: Query data using "Contains" keyword in Dynamic Linq in C#
body: <p>I am facing some problem while executing the query having 'Contains' keyword in Dynamic linq in C#. I am getting the below error</p>
  
  <p>No property or field exists in type 'Int32'</p>
  
  <p>My code is as below:</p>
  
  <p>If  I user the 'Contains' keyword for datatype string field, then it works fine as below</p>
  
  <pre><code>string[] CandidateNamesArray = new string[]{"Ram", "Venkat", "Micheal"}
  var dynamicLinqQuery = Candidates.Where("CandidateName.Contains(@0)", CandidateNamesArray );
  </code></pre>
  
  <ul>
  <li>works fine</li>
  </ul>
  
  <p>But if I use the 'Contains' keyword for datatype int field, then it throws exception as below</p>
  
  <pre><code>int[] CandidateIdsArray = new int[]{4, 78, 101}
  var dynamicLinqQuery = Candidates.Where("CandidateId.Contains(@0)", CandidateIdsArray);
  </code></pre>
  
  <blockquote>
    <p>Runtime Exception - "No applicable method 'Contains' exists in type
    'Int32'"</p>
  </blockquote>
  
  <p>Also tried in another way as below</p>
  
  <pre><code>int[] CandidateIdsArray = new int[]{4, 78, 101}
  var dynamicLinqQuery = Candidates.Where("@0.Contains(CandidateId)", CandidateIdsArray);
  </code></pre>
  
  <blockquote>
    <p>Runtime Exception - "No property or field 'CandidateId' exists in type
    'Int32'"</p>
  </blockquote>
  
  <p>I have spend almost 2 days to resolve the above problem but not able to succeed. Could any one please help me out in resolving the above issue...Thanks in Advance</p>