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
string name = "ball";
byte languageId = 1;
var q = QueryRepository.Query.WhereTranslate(languageId, y => y.ProductName == name);
I'm transforming the expression I sent within the WhereTranslate method with the following code block:
var linqQuery = predicate.ToString().Replace("ProductName", "Value");
When I try to convert this transformed code block back into a LINQ query in a retransformed manner, I encounter the following error:
System.Linq.Dynamic.Core.Exceptions.ParseException: 'Enum type '..' not found'.
There is no issue when I manually write the LINQ expression, but the problem arises when I try to re-parse the "name" value that has been passed into the query parametrically. How can I overcome this issue?
The text was updated successfully, but these errors were encountered:
I have a code block as shown below:
I'm transforming the expression I sent within the WhereTranslate method with the following code block:
var linqQuery = predicate.ToString().Replace("ProductName", "Value");
When I try to convert this transformed code block back into a LINQ query in a retransformed manner, I encounter the following error:
System.Linq.Dynamic.Core.Exceptions.ParseException: 'Enum type '..' not found'.
There is no issue when I manually write the LINQ expression, but the problem arises when I try to re-parse the "name" value that has been passed into the query parametrically. How can I overcome this issue?
The text was updated successfully, but these errors were encountered: