You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mgravell I use Microsoft.Data.SqlClient and SQL Server 2019. The issue is only with querying, not inserting.
Here's a tiny project that reproduces it using Dapper 2.1.37, AOT 1.0.31, Microsoft.Data.SqlClient 5.2.1. The table has a Date column, and the DTO a corresponding DateOnly property.
I'd like to use DateOnly since it was added to Dapper 2.1.37, but AOT 1.0.31 throws an error when using it with queries like
IDbConnection.QueryAsync
InvalidCastException: Invalid cast from 'System.DateTime' to 'System.DateOnly'
The text was updated successfully, but these errors were encountered: