0

I'm using NpgsqlDataReader to extract data from a PostgreSQL database in C#.

My PostgreSQL table has a column of the cidr data type.

In C# when I use the NpgsqlDataReader's .GetFieldType(index).ToString(); method, I get the following: System.ValueTuple`2[System.Net.IPAddress,System.Int32]

I have the NuGet System.ValueTuple package installed in my project.

Does NpgsqlDataReader have a method to access the data?

JacquesB
  • 37
  • 5

0 Answers0