Skip to content

Support cidr<->IPNetwork mapping #5821

@AnthonyMastrean

Description

@AnthonyMastrean

Are there any plans to support IPNetwork mappings by default? Seems like there would be some compatibility with the PostgreSQL inet and cidr types.

PostgreSQL type Default .NET types Non-default .NET types NpgsqlDbType DbType
cidr IPNetwork ValueTuple<IPAddress, int>, IPAddress Cidr  
inet IPNetwork ValueTuple<IPAddress, int>, IPAddress Inet

https://www.npgsql.org/doc/types/basic.html

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions