Shuxia Ning
2024-09-10 049f546f25cabfb5b08e29c54f49d61a544b0395
IStation.Service/00-core/ConfigHelper.cs
@@ -242,11 +242,10 @@
            DeleteDataBase(Settings.ParasHelper.DataBase.SQLite.AnalysisConnectString);
            var sqlSugarClient = new SqlSugarClient(AnalysisConnectionConfig);
            Type[] types = new Type[] {
                       //typeof(Entity.AnalysisLog),
                       typeof(Entity.AnalysisDeviation),
                       typeof(Entity.AnalysisFactor),
                       //typeof(Entity.AnalysisCombine),
                       //typeof(Entity.AnalysisConclusion),
                        typeof(Entity.AnalysisDeviation),
                        typeof(Entity.AnalysisFactor),
                       // typeof(Entity.AnalysisPump),
                       // typeof(Entity.AnalysisParameter),
                   };
            sqlSugarClient.DbMaintenance.CreateDatabase();
            if (backup)
@@ -290,9 +289,9 @@
        {
            var sqlSugarClient = new SqlSugarClient(HydraulicConnectionConfig);
            Type[] types = new Type[] {
                       typeof(Entity.HydraulicModelValidation),
                       typeof(Entity.HydraulicModelScada),
                       typeof(Entity.HydraulicModelRecord)
                       typeof(Entity.HydraulicValidation),
                       typeof(Entity.HydraulicScada),
                       typeof(Entity.HydraulicRecord)
                   };
            sqlSugarClient.DbMaintenance.CreateDatabase();
            if (backup)