IList<entity> ls = new List<entity>();
ls = (from k in ls
where k.Name.Contains("safdsa") || k.PinSpell.Contains("MJ")
select k).ToList();
等同于 like '%safdsa%' or like '%MJ%'
IList<entity> ls = new List<entity>();
ls = (from k in ls
where k.Name.Contains("safdsa") || k.PinSpell.Contains("MJ")
select k).ToList();
等同于 like '%safdsa%' or like '%MJ%'
转载于:https://www.cnblogs.com/wdw31210/p/3645185.html