エラーが発生しました:
LINQ to Entities does not recognize the method 'Int32 LastIndexOf(System.String)'
method, and this method cannot be translated into a store expression.
このコードを使用して、人の名前が特定の文字で始まるかどうかを判断する場合:
persons = persons.Where(c => c.FullName.IndexOf(" ") > 0 &&
c.FullName.Substring(c.FullName.LastIndexOf(" ")+1).StartsWith(lastNameSearch));
LastIndexOf()を使用せずにこれを達成する方法の手がかりはありますか?ToList()を使用してデータベースから結果を取得した後、これを確認する必要があるかもしれません。