/// <summary> /// SQL Scriptを出力する /// </summary> /// <param name="opt"></param> /// <param name="tableInfo"></param> private void CreateSqlScript(ScriptOptions opt, TableLayout tableInfo) { //OutPut Start Logging.WriteLine(Resources.StringTable.SqlScriptStart, tableInfo.TableName, tableInfo.DisplayName); //Drop Description if ((opt & ScriptOptions.DropDropDescriptions) == ScriptOptions.DropDropDescriptions) { Logging.Write(tableInfo.GetDropDescriptionScript()); } //Drop if ((opt & ScriptOptions.DropTables) == ScriptOptions.DropTables) { Logging.Write(tableInfo.GetDropScript()); } //Create if ((opt & ScriptOptions.CreateTables) == ScriptOptions.CreateTables) { Logging.Write(tableInfo.GetCreateScript()); } //Create Description if ((opt & ScriptOptions.CreateDropDescriptions) == ScriptOptions.CreateDropDescriptions) { Logging.Write(tableInfo.GetCreateDescriptionScript()); } }