c# sql reader get all column names code example
Example: datareader get field names
var fieldNames = Enumerable.Range(0, reader.FieldCount)
.Select(reader.GetName)
.ToArray();
var fieldNames = Enumerable.Range(0, reader.FieldCount)
.Select(reader.GetName)
.ToArray();