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

Support fot LocalDateTime.Date part #35

Closed
martinvolek-ext96338 opened this issue May 18, 2023 · 1 comment · Fixed by #36
Closed

Support fot LocalDateTime.Date part #35

martinvolek-ext96338 opened this issue May 18, 2023 · 1 comment · Fixed by #36

Comments

@martinvolek-ext96338
Copy link

martinvolek-ext96338 commented May 18, 2023

Would it be possible to support LocalDateTime.Date part? The behavior should be the same as DateTime.Date.

Usage example:

// Created property is of LocalDateTime type
Items.Where(x => x.Created.Date == ...)
Items.Where(x => x.Created.Date <= ...)

For now (v7.0.0) this fails with: "The LINQ expression '...' could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable', 'AsAsyncEnumerable', 'ToList', or 'ToListAsync'. See https://go.microsoft.com/fwlink/?linkid=2101038 for more information."

@StevenRasmussen
Copy link
Owner

@martinvolek-ext96338 - Sorry for the late response. I have published a new version (7.1) to NuGet that adds support for this.

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

Successfully merging a pull request may close this issue.

2 participants