Skip to content

Filter validation problems #209

Answered by alirezanet
KaJIbI4 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @KaJIbI4,
Yes, the current implementation of the GridifyQuery isValid method checks the field names. As for exceptions, we depend on dotnet parsers. If the value you provide can be parsed by the built-in dotnet parser and converters, Gridify tries to avoid any exceptions since the value does not exist. However, if parsing fails, an exception is thrown (for example, when converting a string to an integer, which should not happen).
You can improve the functionality by accessing the SyntaxTree or using the mapper's value converter to parse the value before it gets to the GridifyQueryBuilder...
However, if you believe there is a scenario that Gridify should inherently support regarding the…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by KaJIbI4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants