/// <summary> /// 导出成JSON文件. /// </summary> /// <returns>导出文件(Json格式).</returns> /// <param name="iExportDir">导出路径.</param> public virtual string ExportToJsonFile(string iExportDir) { string exportDir = iExportDir; if (true == string.IsNullOrEmpty(exportDir)) { exportDir = this.GetExportPath(); } else { this.ExportJsonPath = iExportDir; } return(UtilsAsset.ExportData <T2> (this.Data, exportDir)); }
/// <summary> /// 导出成JSON文件. /// </summary> /// <returns>导出文件(Json格式).</returns> /// <param name="iExportDir">导出路径.</param> public virtual string ExportToJsonFile(string iExportDir) { string exportDir = iExportDir; if (true == string.IsNullOrEmpty(exportDir)) { exportDir = this.JsonPath; } if (false == UtilsAsset.CheckAndCreateDirByFullPath(this.JsonPath)) { UtilsLog.Error(this.ClassName, "ExportToJsonFile -> CheckAndCreateDirByFullPath Failed!!! \n (Path:{0})", this.JsonPath); return(null); } return(UtilsAsset.ExportData <T1> (this.Data, exportDir)); }