Simple.Data.Npgsql by Chris Hogan,Yaroslav Tatarenko

<PackageReference Include="Simple.Data.Npgsql" Version="0.19.1" />

 DataReaderExtensions

static class DataReaderExtensions
using System.Data; namespace Simple.Data.Npgsql { internal static class DataReaderExtensions { internal static int FindField(this IDataReader rdr, string fieldName) { for (int i = 0; i < rdr.FieldCount; i++) { if (rdr.GetName(i).Equals(fieldName)) return i; } return -1; } } }