예제 #1
0
파일: Program.cs 프로젝트: popovegor/tools
 private static void GenerateScripts(ConsoleParams prms)
 {
     ScriptFacade f = new ScriptFacade(prms.ConnectionString.Value, prms.DatabaseName.Value);
       GenScriptsPath = Path.Combine(ConfigurationManager.AppSettings["GenScriptPath"] ?? GenScriptsPath, prms.DatabaseName.Value);
       ScriptExtension = ConfigurationManager.AppSettings["ScriptExtension"] ?? ScriptExtension;
       CreateDirectioriesAsNeeded();
       System.Threading.Tasks.Parallel.ForEach(
     f.GetTableNames(prms.TablesPattern.Value)
     , tbl => GenerateTableScript(f, tbl));
 }