public class ErrorLogModel
{
public int UnitID { get; set; }
public string Address { get; set; }
public IList<HardwareLogModel> _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; }
}
If i want to use expression where clause for ErrorLogModel where HardwareID=100
Can any body help me?
ErrorLogModel.Where((SPLHardwareLogModel a)=>a.ErroLogCode=='10001');