/// <summary> /// 获取导出设置 /// </summary> private IExcelConfiguration GetSetting() { var config = InternalContext.GetExportSetting <TEntity>(); if (config == null) { throw new ArgumentException($"请设置【{nameof(TEntity)}】导出配置"); } return(config); }
/// <summary> /// 初始化 /// </summary> public void Init() { Init(InternalContext.GetExportSetting <TEntity>()); }