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

DateOnly is not supported #1156

Open
Hugo-C opened this issue Jan 25, 2023 · 1 comment
Open

DateOnly is not supported #1156

Hugo-C opened this issue Jan 25, 2023 · 1 comment

Comments

@Hugo-C
Copy link

Hugo-C commented Jan 25, 2023

DateOnly, introduced in .NET 6 is not supported as it raises:

System.NotSupportedException : Don't know about System.DateOnly

I am interested in implementing it if I could get some pointers (maybe good starting points are #239 or #1012 ?) and the assurance it'll be reviewed.

@Bediruna
Copy link

else if (clrType == typeof(DateOnly)) { return "date"; }

in the SqlType method would fix this. But it needs to be in an updated library.

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