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
With the old version (1.2.25) of the library I could call methods of the class in the order function. With the new version I get an error that the method is not accessible.
I have the same exception after bumping to 1.3.1 version System.Linq.Dynamic.Core.Exceptions.ParseException : Methods on type 'IInnerSlsRoleProxy' are not accessible
A breaking change is introduced in version 1.3.0 which is related to calling methods on classes.
Due to security reasons, it's now only allowed to call methods on the standard predefined classes like (bool, int, string ...).
If you want to call a method on an own custom class, annotate that class with the DynamicLinqType.
Example:
If it's not possible to add that attribute, you need to implement a custom CustomTypeProvider and set this to the ParsingConfig and provide that config to the dynamic call.
Dear,
With the old version (1.2.25) of the library I could call methods of the class in the order function. With the new version I get an error that the method is not accessible.
in order string I have, for example: "
PenaltyTotal ascending, GetCOPenalty(0,2) ascending, GetCOPenalty(0,3) ascending
"where
GetCOPenalty(0,2)
is a public method of PilotWithCO classSystem.Linq.Dynamic.Core.Exceptions.ParseException: 'Methods on type 'PilotWithCO' are not accessible'
The text was updated successfully, but these errors were encountered: