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%'
本文共 173 字,大约阅读时间需要 1 分钟。
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%'
转载地址:http://xecla.baihongyu.com/