title: Query for OR condition, when number of values are dynamic
body: <p>How to add OR condition dynamically in query. Code Using EF5.0, LINQ , MVC4.0 and repository pattern.</p>
  
  <pre><code>public ActionResult Index()
      {
        var model = new AssignedSearchFields();   //ViewModel
        List&lt;LClient.Model.Attribute&gt; allFields =                      Common.GetAssignedSearchFields(User.Identity.Name, userID, "EntityType Name 1");     
        model.SearchFields = allFields;  // List allFields having dynamic number of items.
        model.Entities = entityRepository.GetMany(e =&gt; e.EntityTypeID == 1 &amp;&amp; e.InstanceID &lt;= 10 &amp;&amp; (e.AttributeID == 1 || e.AttributeID == 2 || e.AttributeID == 3 || e.AttributeID == 4)); // Here I want to use AttributeID dynamically without OR conditions.
        return View(model);    
  }  
  </code></pre>