var query = (from s in _context.Series
where SqlMethods.Like(s.Abbreviation.Substring(0,2), "[0-9]")
select s).OrderBy(s => s.Abbreviation).ToList();
seriesList = query.OrderBy(s => s.Abbreviation).ToList();
想查出来首字母是数字的·怎么查啊·请赐教·不要.ToList()之后判断
分享到:更多
------解决方案-------------------- where SqlMethods.Like(s.Abbreviation, "[0-9]%")