标签:lis stat getname read dna for name string add
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;
}
}
标签:lis stat getname read dna for name string add
原文地址:https://www.cnblogs.com/zttb/p/9646517.html