Possible Duplicate:
linq to entities doesn't recognize a methodLinq char.isnumber, чтобы проверить, если строка начинается с номером
Я пытаюсь проверить, если строка начинается с номера
var product09 = DataContext.Products.Where(x => Char.IsNumber(x.ProductName,0));
Я также попытался
var product09 = DataContext.Products.Where(x => Char.IsNumber(x.ProductName[0]));
I получить следующую ошибку:
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)
Не могли бы вы помочь?
Есть ли что-нибудь полезное в трассировке стека, которое сообщение об ошибке просит вас изучить? –
Насколько велик список? 1000? 10000? –
Какой у вас поставщик? Linq to SQL? –