I am using a file geodatabase located on my local machines hard drive.
I have also tried to narrow down the columns retrieved, to only the ones I want to retrieve, but it also seems to be slower than I expected. Is there any way to just get all values?
string subfields = "aaaaa, bbbbb, ccccc, ddddd, eeeee";
IQueryFilter queryFilter = new QueryFilterClass();
queryFilter.WhereClause = null;
queryFilter.SubFields = subfields;
IFeatureCursor fc = featureClass.Search(queryFilter, false);
IFeature feature;
List<AllLocalInfoItem> AllLocalInfoItemList = new List<AllLocalInfoItem>();
while ((feature = fc.NextFeature()) != null)
{
AllLocalInfoItem ali = new AllLocalInfoItem();
ali.aaaaa= xxxxxDbReadWrite.getTableValue(feature, "aaaaa");
ali.bbbbb= xxxxxDbReadWrite.getTableValue(feature, "bbbbb");
ali.ccccc= xxxxxDbReadWrite.getTableValue(feature, "ccccc");
ali.ddddd= xxxxxDbReadWrite.getTableValue(feature, "ddddd");
ali.eeeee= xxxxxDbReadWrite.getTableValue(feature, "eeeee");
AllLocalInfoItemList.Add(ali);
}