I want to effectively get results from this query.
// Get all people whose name starts with F or later alphabets
Select * from MyTable where PersonName >'F'
When i run this code using Entity Framework Core 3.0,
context.MyTable
.Where(t=> String.Compare(t.PersonName ,"F")>0);
I got error,
query could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to either AsEnumerable(), AsAsyncEnumerable(), ToList(), or ToListAsync()
My current work around is to use FromSQL method and write my own sql. Is there any way to achieve the same using LINQ syntax?