获取read所有列
public static class h
{
public static List<string> GetFieldNames(this SqlDataReader dr)
{
var list = new List<string>();
for (var i = 0; i < dr.FieldCount; i++)
{
var name = dr.GetName(i);
list.Add(name);
}
return list;
}
}