日期:2014-05-20  浏览次数:20795 次

Linq模糊查询
这句代码如何写出模糊查询。
List<Objects> objs;
IEnumerable<Objects> fiterObjs = objs.Where(x => x.ObjectName==this.acbObjectName.Text.Trim());
我试了这样子写,可是不行
IEnumerable<Objects> fiterObjs = objs.Where(x => x.ObjectName.Contains(this.acbObjectName.Text.Trim()));


------解决方案--------------------