Skip to content

'Methods on type 'MyClass' are not accessible' #689

Description

@nowire

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.

IEnumerable<PilotWithCO> pilotwithcolist = pilotwithcolist.AsQueryable().Where(where).OrderBy(order).ToList();

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 class

System.Linq.Dynamic.Core.Exceptions.ParseException: 'Methods on type 'PilotWithCO' are not accessible'

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions