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

Add conditional extension methods for SelectQuery #533

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

mk3008
Copy link
Owner

@mk3008 mk3008 commented Sep 5, 2024

  • Implemented If method to apply a function to SelectQuery if a boolean condition is true.
  • Added IfNotNull method to apply a function when the provided object is not null.
  • Introduced IfNotNullOrEmpty method to apply a function when a string is not null or empty.

These methods improve readability and allow for cleaner conditional query modifications.

- Implemented `If` method to apply a function to `SelectQuery` if a boolean condition is true.
- Added `IfNotNull` method to apply a function when the provided object is not null.
- Introduced `IfNotNullOrEmpty` method to apply a function when a string is not null or empty.

These methods improve readability and allow for cleaner conditional query modifications.
@mk3008 mk3008 added the enhancement New feature or request label Sep 5, 2024
@mk3008 mk3008 self-assigned this Sep 5, 2024
@mk3008 mk3008 linked an issue Sep 5, 2024 that may be closed by this pull request
@mk3008 mk3008 merged commit 0bd9d19 into main Sep 5, 2024
1 check passed
@mk3008 mk3008 deleted the 530-requestadding-an-if-function branch September 5, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request:Adding an If Function
1 participant