Пример #1
0
        private void CreateSchemas(DatabaseDefinition databaseDefinition)
        {
            foreach (var schemaName in databaseDefinition.GetSchemaNames())
            {
                if (schemaName == Executer.Generator.Context.Settings.SqlVersionSpecificSettings.GetAs <string>("DefaultSchema", null))
                {
                    continue;
                }

                var sql = Executer.Generator.CreateSchema(schemaName);
                Executer.ExecuteNonQuery(sql);
            }
        }