Skip to content

added validation for filtering and sorting in ReplaceAliasesWithPrope… #70

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SupportMaraSoft
Copy link

Currently, ReplaceAliasesWithPropertyPaths simply replaces query aliases with their corresponding property paths, but it does not enforce any filtering or sorting restrictions defined in the QueryKitPropertyInfo.

This change adds a basic check to throw an exception when a user attempts to filter or sort on a property that is explicitly marked with CanFilter = false and CanSort = false.

(This PR is a quick fix that works for my specific scenario and is made to highlight the issue, but it's likely not suitable to merge as-is.)

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

Successfully merging this pull request may close these issues.

None yet

1 participant