sqlite-net icon indicating copy to clipboard operation
sqlite-net copied to clipboard

DateOnly is not supported

Open Hugo-C opened this issue 2 years ago • 4 comments

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.

Hugo-C avatar Jan 25 '23 17:01 Hugo-C

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

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

Bediruna avatar Mar 29 '24 14:03 Bediruna