dataset的转换
  dataset _dataSource;
  IListSource ilistSource = _dataSource as IListSource;
  IList memberList = ilistSource.GetList();
//如果datasource 是dataTable此时得到一个dataview
//如果datasource是dataset此时返回
  if (!ilistSource.ContainsListCollection)
    {
        return (IEnumerable)ilistSource.GetList();//return dataview
    }
  然后分析得到dataset的多张表的属性集合
     IlistSoure  IListSoure.GetList()-->IList----
    -->ITypeList ITypeList.getItemProperty()--->PropertyDescriptorCollection(包含多张表的属性集合)
  单张表的属性集合    多张表的属性集合.Find(需要的表,true);
  可枚举的dataTable    单张表的属性集合.getValue(需要的表的数据)
 
                    
                
 
 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号