-
Notifications
You must be signed in to change notification settings - Fork 239
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
Feature request to chain And and Or Conditions in Where Clause #52
Comments
Hi @fingers10, This feature is useful, but it's out of the scope of the specifications (as implemented in this package). Btw, you can accomplish the functionality you want with one additional condition. It's not elegant, but it's simple.
|
@ardalis What's your thought on this? If we decide to utilize expression reconstructions, then we can achieve a lot, and add quite many features (btw, we can solve #38 too). |
If calling code is having to AND and OR different specifications together, that's essentially query logic the caller is responsible for. I'd put that logic into a new specification so the caller doesn't need to do anything. In that new specification, it can AND and OR however it wants in its |
Closing as I think this can/should be done in individual specifications to keep logic from leaking throughout the app. |
It would be great if we can add dynamic where clause chaining into specification. For example, if we need to dynamically include search values in where clause based on condition or to support advanced search scenarios; can something like this would make sense?
This would add great value to the package. And help to build query for advanced search or dynamic search
The text was updated successfully, but these errors were encountered: