|
@@ -125,8 +125,8 @@ namespace GFGEditor
|
|
|
SqliteController.Instance.dirPath = Path.Combine(Environment.CurrentDirectory, ResPathUtil.CONFIG_DIR_PATH);
|
|
|
SqliteController.Instance.Init(true, null);
|
|
|
SQLiteHelper.Instance.OpenConnection();
|
|
|
- try
|
|
|
- {
|
|
|
+ //try
|
|
|
+ //{
|
|
|
|
|
|
SQLiteHelper.Instance.ClearAllTables();
|
|
|
CodeTemplateFactory.Init();
|
|
@@ -141,15 +141,15 @@ namespace GFGEditor
|
|
|
}
|
|
|
|
|
|
ExcelReader.ReadExcel(CodeBuilder.GenerateCode);
|
|
|
- }
|
|
|
- catch (Exception e)
|
|
|
- {
|
|
|
- throw (e.InnerException);
|
|
|
- }
|
|
|
- finally
|
|
|
- {
|
|
|
+ //}
|
|
|
+ //catch (Exception e)
|
|
|
+ //{
|
|
|
+ // throw (e.InnerException);
|
|
|
+ //}
|
|
|
+ //finally
|
|
|
+ //{
|
|
|
SQLiteHelper.Instance.CloseConnection();
|
|
|
- }
|
|
|
+ //}
|
|
|
//开始扫描表格,自动生成部分数据
|
|
|
ExcelScanner.StartScan();
|
|
|
//拷贝slqlite文件至共享库
|