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; }
}
如果我想使用表達式的where子句ErrorLogModel其中硬件ID = 100LINQ表達的亞羣
任何機構可以幫助我嗎?
ErrorLogModel.Where((SPLHardwareLogModel a)=> a.ErroLogCode =='10001');