c# get column names and types from sql reader 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();