/// <summary> /// 获取更新数据的SQL /// </summary> /// <returns></returns> public string GetUpdateDBText() { List <string> lstSQL = DBChecker.CheckDataBase(this); StringBuilder sbSQL = new StringBuilder(); foreach (string sql in lstSQL) { sbSQL.AppendLine(sql); } return(sbSQL.ToString()); }
/// <summary> /// 检查并更新数据库结构 /// </summary> /// <returns></returns> public string UpdateDataBase() { List <string> sql = DBChecker.CheckDataBase(this); List <string> res = DBChecker.ExecuteSQL(DefaultOperate, sql); StringBuilder sbRet = new StringBuilder(); foreach (string str in res) { sbRet.AppendLine(str); } return(sbRet.ToString()); }
/// <summary> /// 检查数据库结构 /// </summary> /// <returns></returns> public List <string> CheckDataBase() { return(DBChecker.CheckDataBase(this)); }