namespace IStation.Service
|
{
|
/// <summary>
|
/// 数据库初始化辅助类
|
/// </summary>
|
public class DbInitHelper
|
{
|
|
/// <summary>
|
/// 初始化
|
/// </summary>
|
public static void Init()
|
{
|
//IStation.ConfigHelper.DeleteDataBase(Settings.ParasHelper.DataBase.SQLite.AnalysisConnectString);
|
//IStation.ConfigHelper.DeleteDataBase(Settings.ParasHelper.DataBase.SQLite.ScheduleConnectString);
|
//IStation.ConfigHelper.DeleteDataBase(Settings.ParasHelper.DataBase.SQLite.HydraulicConnectString);
|
//IStation.ConfigHelper.InitAnalysisDB();
|
//IStation.ConfigHelper.InitScheduleDB();
|
//IStation.ConfigHelper.InitHydraulicDB();
|
|
//var station = new IStation.Service.Station().Get();
|
//var helper = new IStation.Algorithm.AnalysisHelper();
|
//helper.AnalysisPump(station.Station1);
|
//helper.AnalysisPump(station.Station2);
|
|
//var pump_list = new List<Model.Pump>();
|
|
//helper.AnalysisConclusion();
|
|
}
|
|
}
|
}
|