1.项目必须是.net framework 3.5以上 2.项目引用添加了System.Data.DataSetExtensions 3.类中要 using System.Data; 转载于:https://www.cnblogs.com/XuZhiZhang/p/4723558.html