title: C# Is it possible to check if any specific digit is present in an ID?
body: <p>I want to have a search option where </p>
  
  <p><strong>1.user will type any letter that matches the name from database table.</strong></p>
  
  <p>This works smoothly.</p>
  
  <pre><code>string userinput = "hel"
  
  List&lt;string&gt; queryResult = _myContext.Products
    .Where(r =&gt; r.Name.Contains(userinput))
    .Select(r =&gt; r.Name)
    .ToList();
  </code></pre>
  
  <p><strong>2. user will type any digit that should match the ID if that digit/digits exist in the ID it should give me a list of those ID</strong></p>
  
  <p>can i do something thing like that??</p>
  
  <pre><code>int queryId= 12;
  
  _myContext.Products.Where(r =&gt; r.ID.contains(queryId)).Select(r =&gt; r.ID).ToList();
  </code></pre>