protected virtual void GenerateCreateSchema(string schema)
{
Check.NotEmpty(schema, "schema");
using (var writer = Writer())
{
writer.Write("IF schema_id('");
writer.Write(Escape(schema));
writer.WriteLine("') IS NULL");
writer.Indent++;
writer.Write("EXECUTE('CREATE SCHEMA ");
writer.Write(Escape(Quote(schema)));
writer.Write("')");
Statement(writer);
}
}