public string GenerateCreateProcedure(IDatabaseFactory factory, NameWithSchema name, IShellContext context, bool useTransaction, bool overwriteExisting, List<ParameterModel> pars, string editorInfo) { if (overwriteExisting) { string sqlCore = GenerateCreateProcedureCore(factory, name, context, useTransaction, "", pars, editorInfo); var cmp = new SqlScriptCompiler(factory, this, context, name.ToString()); cmp.CreateOrAlterProcedure(name, sqlCore); return cmp.GetCompiledSql(); } else { return GenerateCreateProcedureCore(factory, name, context, useTransaction, "create", pars, editorInfo); } }