Skip to content
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

Fix Query(params IPredicate[] predicates) #27

Open
AlexFursenkoOd opened this issue Jun 18, 2018 · 0 comments
Open

Fix Query(params IPredicate[] predicates) #27

AlexFursenkoOd opened this issue Jun 18, 2018 · 0 comments

Comments

@AlexFursenkoOd
Copy link

Could you modify method Query(params IPredicate[] predicates) in Form.cs to use iterator of type IPredicate instead of Predicate. Until you do so there is no way to create my own predicate. There is no sense to inherit from IPredicate because method Query uses iterator of type Predicate, so if I pass my predicate of type IPredicate method will try to convert it to instance of type Predicate which will through an Exception.

Or perhaps mark method Query of type Predicate as virtual. This way we can inherit from type Predicate. It will allow us to override existing implementation of Predicate class
Anyway, for now there is no real way to add not supported in this library predicates (like "has")

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

No branches or pull requests

1 participant