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
In our project we use System.Linq.Dynamic.Core to parse rule expressions from the database.
From DB we get rule with Criteria, that is actually a string expression.
We have a problem, string expression with method ContainsKey is not working.
This is how we parse it
Expression<Func<DmsDocumentInfo,bool>>filter=DynamicExpressionParser.ParseLambda<DmsDocumentInfo,bool>(ParsingConfig.Default,false,rule.Criteria);returnfilter.Compile().Invoke(documentInfo);//here the error occurs
In our project we use System.Linq.Dynamic.Core to parse rule expressions from the database.
From DB we get rule with Criteria, that is actually a string expression.
We have a problem, string expression with method ContainsKey is not working.
This is how we parse it
rule.Criteria is a string, that contains string expression
Could you help us and explain why this error happens?
IReadOnlyDictionary
has methodContaintsKey()
...The text was updated successfully, but these errors were encountered: