Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.Linq.Dynamic.Core.Exceptions.ParseException: 'Enum type '..' not found' #747

Open
buraksv opened this issue Oct 2, 2023 · 5 comments
Assignees

Comments

@buraksv
Copy link

buraksv commented Oct 2, 2023

I have a code block as shown below:

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?

@StefH
Copy link
Collaborator

StefH commented Oct 29, 2023

@buraksv
Please provide a full working :

@StefH StefH self-assigned this Oct 29, 2023
@StefH
Copy link
Collaborator

StefH commented Dec 5, 2023

@buraksv
Can you please provide a full working example or .net fiddle or console-app?

@StefH
Copy link
Collaborator

StefH commented Jan 23, 2024

@buraksv
Can you please provide a full working example or .net fiddle or console-app?

2 similar comments
@StefH
Copy link
Collaborator

StefH commented Mar 3, 2024

@buraksv
Can you please provide a full working example or .net fiddle or console-app?

@StefH
Copy link
Collaborator

StefH commented Aug 24, 2024

@buraksv
Can you please provide a full working example or .net fiddle or console-app?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants