LINQ to Entities 不识别方法var query (from s in _context.Serieswhere SqlMethods.Like(s.Abbreviati
LINQ to Entities 不识别方法
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]%")