You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to do an dynamic request which returns me all entries where an enum column contains a special value.
Unfortunately I could not find a solution the archieve this with a dynamic expression.
It seems like EF core has also a problem with this why I used the workaround from the following issue dotnet/efcore#20604
But with this I was able to do the request .Where(s => ((string)(object)s.Product).ToLower().Contains("test"))
If I now try the same request as dynamic string .Where("((string)(object)Product).ToLower().Contains(\"test\"))")
I receive the following issue '.' or '(' or string literal expected (at index 8)
Has someone an idea how I can fix this problem?
Thanks and best regards
Philipp
The text was updated successfully, but these errors were encountered:
Hi
I try to do an dynamic request which returns me all entries where an enum column contains a special value.
Unfortunately I could not find a solution the archieve this with a dynamic expression.
It seems like EF core has also a problem with this why I used the workaround from the following issue dotnet/efcore#20604
But with this I was able to do the request
.Where(s => ((string)(object)s.Product).ToLower().Contains("test"))
If I now try the same request as dynamic string
.Where("((string)(object)Product).ToLower().Contains(\"test\"))")
I receive the following issue
'.' or '(' or string literal expected (at index 8)
Has someone an idea how I can fix this problem?
Thanks and best regards
Philipp
The text was updated successfully, but these errors were encountered: