title: LINQ Expression In Subgroups
body: <pre><code> public class ErrorLogModel
  {
  
      public int UnitID { get; set; }
      public string Address { get; set; }
      public IList&lt;HardwareLogModel&gt; _Hardware { get; set; }
  
  }
    public  class SPLHardwareLogModel
  {
      public Guid HardwareID { get; set; }
      public string HardwareDesc { get; set; }
      public string HardwareStatus { get; set; }
      public string ErroLogCode { get; set; }
      public string ErroLogDescription { get; set; }
      public DateTime? ErroLogDate { get; set; }
  }
  </code></pre>
  
  <p>If i want to use expression where clause for ErrorLogModel where HardwareID=100</p>
  
  <p>Can any body help me?</p>
  
  <p>ErrorLogModel.Where((SPLHardwareLogModel a)=>a.ErroLogCode=='10001');</p>