Hi,
Npgsql 10 release notes say:
date and time are now mapped to DateOnly and TimeOnly
The PostgreSQL date and time types are now read as .NET DateOnly and TimeOnly, instead of DateTime and TimeSpan by default, respectively. This affects non-generic read methods which return object, such as ExecuteScalarAsync and NpgsqlDataReader.GetValue; you can still read DateTime and TimeSpan via the generic GetFieldValue.
When upgrading existing code base, my entities that have e.g. a date type, will fail when accessing the property on the entity:
System.InvalidCastException: Unable to cast object of type 'System.DateOnly' to type 'System.DateTime'.
Is it possible that LLBLGen could get DateOnly/TimeOnly support, or use the generic GetFieldValue to avoid this cast exception?
Thanks.