/// <summary> /// ?? /// </summary> public static void Start() { if (!File.Exists(Config.DBMasterPath)) { DBMaster.Create(); } //?????? DBMaster.Open(); ListDB = new List <DatabaseEntity>(); ListDB.Add(DBMaster.DB); //??????? DataTableEntity modelDT = new DataTableEntity { Name = "Database" }; modelDT = DataTableManage.Read(DBMaster.DB, modelDT); string[] listColumn = new string[] { "Name" }; List <DataRowEntity> listDR = DataRowManage.Read(modelDT, new string[] { "ID", "Name", "Path" }, new DataWhereEntity[] { new DataWhereEntity { ColumnName = "ID", Predicate = info => Convert.ToInt32(info) != 1 } }); //???? foreach (DataRowEntity modelDR in listDR) { DatabaseEntity modelDB = new DatabaseEntity { MasterFile = new DataFileEntity { FilePath = modelDR.Contents[2].ToString() } }; DatabaseManage.Read(modelDB); modelDB.ID = Convert.ToInt32(modelDR.Contents[0]); ListDB.Add(modelDB); } IsRun = true; }