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

Cannot use Linq expression #113

Open
ymeric opened this issue Dec 24, 2024 · 0 comments
Open

Cannot use Linq expression #113

ymeric opened this issue Dec 24, 2024 · 0 comments

Comments

@ymeric
Copy link

ymeric commented Dec 24, 2024

When I use a Linq expression like the example below, I'm getting the error message below. I am adding the Linq enumerable class to the expression context using context.Imports.AddType(typeof(Enumerable)); but it doesn't help. What am I missing?

Error Message:

Flee.PublicTypes.ExpressionCompileException: 'IdentifierElement: Could not find a field/property/variable with the name 'p''

Linq Expression:

SomeParameter.Select(p=>p.substring(0, p.indexOf("|"))).ToList())

SomeParameter is a string array.

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

No branches or pull requests

1 participant