Skip to content

Commit 8cdfca8

Browse files
committed
Document IPNetwork/cidr breaking change
1 parent 586ea15 commit 8cdfca8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

conceptual/EFCore.PG/release-notes/9.0.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ If your application passes an NpgsqlDataSource to `UseNpgsql`, it also needs to
8585

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

88+
### PostgreSQL `cidr` is now mapped to .NET `IPNetwork` by default
89+
90+
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`.
91+
8892
## Contributors
8993

9094
A big thank you to all the following people who contributed to the 9.0 release!

conceptual/Npgsql/types/basic.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ date | DateTime | DateOnly (6.0+)
3737
time without time zone | TimeSpan | TimeOnly (6.0+)
3838
time with time zone | DateTimeOffset |
3939
interval | TimeSpan<sup>3</sup> | <xref:NpgsqlTypes.NpgsqlInterval>
40-
cidr | <xref:NpgsqlTypes.NpgsqlCidr><sup>4</sup> |
40+
cidr | <xref:NpgsqlTypes.NpgsqlCidr><sup>4</sup> | [`IPNetwork`](https://learn.microsoft.com/dotnet/api/system.net.ipnetwork)
4141
inet | IPAddress | <xref:NpgsqlTypes.NpgsqlInet>
4242
macaddr | PhysicalAddress |
4343
tsquery | NpgsqlTsQuery |
@@ -115,7 +115,7 @@ date | DateOnly (6.0+) | DateT
115115
time without time zone | TimeOnly (6.0+) | TimeSpan | Time | Time
116116
time with time zone | | DateTimeOffset | TimeTz |
117117
interval | TimeSpan | <xref:NpgsqlTypes.NpgsqlInterval> | Interval |
118-
cidr | | ValueTuple\<IPAddress, int\>, IPAddress | Cidr |
118+
cidr | <xref:NpgsqlTypes.NpgsqlCidr>, [`IPNetwork`](https://learn.microsoft.com/dotnet/api/system.net.ipnetwork) | ValueTuple\<IPAddress, int\>, IPAddress | Cidr |
119119
inet | IPAddress | ValueTuple\<IPAddress, int\> | Inet |
120120
macaddr | PhysicalAddress | | MacAddr |
121121
tsquery | NpgsqlTsQuery | | TsQuery |

0 commit comments

Comments
 (0)