I'm using NodaTime by Npgsql.EntityFrameworkCore.PostgreSQL.NodaTime (v5.0.1) and have model:
public class A
{
public NpgsqlRange<OffsetDateTime> VersionPeriod { get; set; }
}
When tstzrange value [2020-12-09T14:34:02.675750+03:00,) is coming from database, it throws following exception:
Unable to cast object of type 'NpgsqlTypes.NpgsqlRange`1[NodaTime.Instant]'
to type 'NpgsqlTypes.NpgsqlRange`1[NodaTime.OffsetDateTime]'.
I'm using NodaTime by
Npgsql.EntityFrameworkCore.PostgreSQL.NodaTime(v5.0.1) and have model:When
tstzrangevalue[2020-12-09T14:34:02.675750+03:00,)is coming from database, it throws following exception: