public IList <TestModel> GetList() { var dt = _dal.GetList(); var list = ReflectorHelper.DataTableToList <TestModel>(dt);//反射将datatable转换为list实体集合 return(list); }
public IList <TestModel> GetList() { var dt = _dal.GetList(); var list = ReflectorHelper.DataTableToList <TestModel>(dt);//反射将datatable转换为list实体集合 return(list); }