假设你查询返回的是DataTabale dtList list=new List();if(dt.Row.count>0){ foreach(DataRow in dt.rows) {entity =new entity();//entity为实体类 entity.a=row[""];//将数据赋值给实体的属性a,依次类推 list.add(entity); }return list;}return null;