日期:2014-05-17  浏览次数:20380 次

LINQ to Entities 不识别方法
C# code

               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]%")
 

相关资料更多>