Getting
System.InvalidOperationException: 'The LINQ expression 'DbSet 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()
while trying to compare two values - an enum(by converting to string) and a string keyword
which I get from a search form in .NET 3 API
query = query.Where(it => it.EnumType.ToString().ToLower().StartsWith(keyword.ToLower());
Help is appreciated.