项目上中要用到将数据库中所有表导出为Excel,以及将Excel数据导入数据库中的操作,使用EPPlus组件,编写以下两个函数. using OfficeOpenXml;using OfficeOpenXml.Table;using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Reflection; public class ExcelHelper { #region