public void WritePermissions(DdlRules rules, StringWriter writer) { var template = _mapping.DdlTemplate.IsNotEmpty() ? rules.Templates[_mapping.DdlTemplate.ToLower()] : rules.Templates["default"]; Table.WriteTemplate(template, writer); Upsert.WriteTemplate(rules, template, writer); Update.WriteTemplate(rules, template, writer); Insert.WriteTemplate(rules, template, writer); Overwrite?.WriteTemplate(rules, template, writer); }