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

[FEATURE] ✨DateOnly support #63

Closed
candoumbe opened this issue Nov 11, 2021 · 1 comment
Closed

[FEATURE] ✨DateOnly support #63

candoumbe opened this issue Nov 11, 2021 · 1 comment
Assignees
Labels
enhancement ✨ New feature or request grammar The issue is related to a FilterExpression implementation

Comments

@candoumbe
Copy link
Owner

candoumbe commented Nov 11, 2021

Is your feature request related to a problem? Please describe.
The release of net6.0 framework brings DateOnly type which should be supported

Describe the solution you'd like
Being able to :

  • parse a query string like date-only=1961-05-19 to its equivalent DateExpression
  • target a DateOnly property when having a DateExpression "at hand" so that given a filter which value is a DateOnly
    new Filter("Date", EqualTo, new DateOnly(1961, 5, 19)) is equivalent to x => x.Date.Equals(new DateOnly(1961, 5, 19))
  • target a DateOnly property when having a DateExpression "at hand" so that given a filter which value is a DateOnly
    new Filter("Date", EqualTo, new DateOnly(1961, 5, 19)) is equivalent to a new WhereClause("Date", ClauseOperator.EqualTo(new DateOnly(1961, 5, 19)))
@candoumbe candoumbe added the enhancement ✨ New feature or request label Nov 11, 2021
@candoumbe candoumbe self-assigned this Nov 11, 2021
@candoumbe candoumbe added the grammar The issue is related to a FilterExpression implementation label Nov 11, 2021
@candoumbe
Copy link
Owner Author

Blocked until Queries.Core support DateOnly type

candoumbe added a commit that referenced this issue Nov 16, 2021
Bumped `Queries.Core` to `0.4.0`
Added support for `DateOnly` (#63)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request grammar The issue is related to a FilterExpression implementation
Projects
None yet
Development

No branches or pull requests

1 participant