可能重复:
linq to entity 无法识别方法
我正在尝试检查字符串是否以数字开头
var product09 = DataContext.Products.Where(x => Char.IsNumber(x.ProductName,0));
我也试过
var product09 = DataContext.Products.Where(x => Char.IsNumber(x.ProductName[0]));
我收到以下错误:
Boolean IsNumber(Char)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NotSupportedException: Boolean IsNumber(Char)
你能帮忙吗?