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()));
------解决方案--------------------
如需要阅读该回复,请登录或注册CSDN!