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

NotSupportedException: The member createdat of type System.DateOnly cannot be used as a parameter value #1731

Closed
talley opened this issue Nov 28, 2021 · 3 comments

Comments

@talley
Copy link

talley commented Nov 28, 2021

NotSupportedException: The member createdat of type System.DateOnly cannot be used as a parameter value

@talley
Copy link
Author

talley commented Nov 28, 2021

I had this in my model declaration and dapper was upset about it.
public DateOnly Createdat { get; set; }

@mgravell
Copy link
Member

Cross-referencing #1728

If you're using Npgsql or any if the other providers that allow this: I aim to merge the relevant PR this week. If you're using SqlClient (SQL Server): the provider itself doesn't support it yet.

@mgravell
Copy link
Member

(closing as dup of 1728)

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

2 participants