Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document IPNetwork/cidr breaking change #373

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions conceptual/EFCore.PG/release-notes/9.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ If your application passes an NpgsqlDataSource to `UseNpgsql`, it also needs to

See the [enum documentation](../mapping/enum.md) for more information.

### PostgreSQL `cidr` is now mapped to .NET `IPNetwork` by default

When scaffolding a table that contains a `cidr` column, a .NET [`IPNetwork`](https://learn.microsoft.com/dotnet/api/system.net.ipnetwork) will be scaffolded instead of the previous `NpgsqlCidr`.

## Contributors

A big thank you to all the following people who contributed to the 9.0 release!
Expand Down
4 changes: 2 additions & 2 deletions conceptual/Npgsql/types/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ date | DateTime | DateOnly (6.0+)
time without time zone | TimeSpan | TimeOnly (6.0+)
time with time zone | DateTimeOffset |
interval | TimeSpan<sup>3</sup> | <xref:NpgsqlTypes.NpgsqlInterval>
cidr | <xref:NpgsqlTypes.NpgsqlCidr><sup>4</sup> |
cidr | <xref:NpgsqlTypes.NpgsqlCidr><sup>4</sup> | [`IPNetwork`](https://learn.microsoft.com/dotnet/api/system.net.ipnetwork)
inet | IPAddress | <xref:NpgsqlTypes.NpgsqlInet>
macaddr | PhysicalAddress |
tsquery | NpgsqlTsQuery |
Expand Down Expand Up @@ -115,7 +115,7 @@ date | DateOnly (6.0+) | DateT
time without time zone | TimeOnly (6.0+) | TimeSpan | Time | Time
time with time zone | | DateTimeOffset | TimeTz |
interval | TimeSpan | <xref:NpgsqlTypes.NpgsqlInterval> | Interval |
cidr | | ValueTuple\<IPAddress, int\>, IPAddress | Cidr |
cidr | <xref:NpgsqlTypes.NpgsqlCidr>, [`IPNetwork`](https://learn.microsoft.com/dotnet/api/system.net.ipnetwork) | ValueTuple\<IPAddress, int\>, IPAddress | Cidr |
inet | IPAddress | ValueTuple\<IPAddress, int\> | Inet |
macaddr | PhysicalAddress | | MacAddr |
tsquery | NpgsqlTsQuery | | TsQuery |
Expand Down