| | |
| | | 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) |
| | |
| | | { |
| | | 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) |