Exemplo n.º 1
0
 public bool DoIntCheck(string path)
 {
     foreach (var prj in Context.Solution.Projects)
     {
         var checker = new SqlSchemaChecker {
             Project = prj
         };
         checker.IntCheck();
     }
     return(true);
 }
Exemplo n.º 2
0
 /// <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);
 }
Exemplo n.º 3
0
 /// <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);
 }