We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello! I'm trying to make a correct filter expression with no success:
public void LinqExpressionShouldBeSerialized() { var filter = "Name==\"Name\" && Int >= 90"; var objects = Enumerable.Range(1, 100).Select(i => new TestObject { Name = $"Name {i}", Int = i }).AsQueryable(); var e = DynamicExpressionParser.ParseLambda(typeof(TestObject), filter); var filteredObjects = objects.Where(filter); Console.WriteLine(filteredObjects.Count()); } public class TestObject { public string Name { get; set; } public int Int { get; set; } }
The error message is "Unknown identifier 'Name'"
The text was updated successfully, but these errors were encountered:
1] This code : var e = DynamicExpressionParser.ParseLambda(typeof(TestObject), filter); use it like https://github.com/StefH/System.Linq.Dynamic.Core/blob/master/test/System.Linq.Dynamic.Core.Tests/DynamicExpressionParserTests.cs#L108
var e = DynamicExpressionParser.ParseLambda(typeof(TestObject), filter);
2] Int is reserved, use var filter = "Name == \"Name\" && X >= 90";
Int
var filter = "Name == \"Name\" && X >= 90";
Sorry, something went wrong.
Thanks, it's worked!
No branches or pull requests
Hello!
I'm trying to make a correct filter expression with no success:
The error message is "Unknown identifier 'Name'"
The text was updated successfully, but these errors were encountered: