public bool DoIntCheck(string path) { foreach (var prj in Context.Solution.Projects) { var checker = new SqlSchemaChecker { Project = prj }; checker.IntCheck(); } return(true); }
/// <summary> /// 重构数据库 /// </summary> /// <param name="path"></param> /// <returns></returns> public bool DoAlertTables(string path) { foreach (var prj in Context.Solution.Projects) { var checker = new SqlSchemaChecker { Project = prj }; checker.AlertTables(prj.DbHost, prj.DbUser, prj.DbPassWord, prj.DbSoruce); } return(true); }
/// <summary> /// 校验数据库字段 /// </summary> /// <param name="path"></param> /// <returns></returns> public string DoCheckDbFieldes(string path) { foreach (var prj in Context.Solution.Projects) { var builder = new SqlSchemaChecker { Project = prj }; builder.CheckColumns(); } return(string.Empty); }