linq 模糊查询

包含某字符串的模糊查询

pageInfo.Wheres.Add(n => n.Title.Contains(Ttile));

以某字符串开头的模糊查询

pageInfo.Wheres.Add(n => n.CateCode.StartsWith(CateCode));

以某字符串结尾的模糊查询

pageInfo.Wheres.Add(n => n.CateCode.EndsWith(CateCode));

posted @ 2017-04-11 09:23  守y1座_空城  阅读(177)  评论(0编辑  收藏  举报