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
I'm experimenting with efcore.pg's new WITHOUT OVERLAPS support but I can't actually get entity framework to create the schema. I've copied the reference documentation exactly and running dotnet ef migrations add MigrationNameHere results in the following error:
Unable to create a 'DbContext' of type 'EmployeeContext'. The exception 'Property 'Employee.ValidPeriod' cannot be used as a key because it has type 'NpgsqlRange' which does not implement 'IComparable', 'IComparable' or 'IStructuralComparable'. Use 'HasConversion' in 'OnModelCreating' to wrap 'NpgsqlRange' with a type that can be compared.' was thrown while attempting to create an instance. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728
Activity
roji commentedon Feb 19, 2026
Thank you for testing this early in the preview - I clearly didn't do good end-to-end testing on this. I'll take a look ASAP.
Additional work on temporal constraints
Additional work on temporal constraints (npgsql#3746)