【发布时间】:2010-02-10 14:18:12
【问题描述】:
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; }
}
如果我想对 ErrorLogModel where HardwareID=100 使用表达式 where 子句
任何人都可以帮助我吗?
ErrorLogModel.Where((SPLHardwareLogModel a)=>a.ErroLogCode=='10001');
【问题讨论】:
标签: c# .net linq linq-to-entities