protected virtual void Generate(
            [NotNull] MySQLCreateDatabaseOperation operation,
            [CanBeNull] IModel model,
            MigrationCommandListBuilder builder)
        {
            Check.NotNull(operation, nameof(operation));
            Check.NotNull(builder, nameof(builder));

            builder
            .Append("CREATE DATABASE ")
            .Append(Dependencies.SqlGenerationHelper.DelimitIdentifier(operation.Name));

            EndStatement(builder, suppressTransaction: true);
        }
Exemple #2
0
        protected virtual void Generate(
            [NotNull] MySQLCreateDatabaseOperation operation,
            [CanBeNull] IModel model,
            MigrationCommandListBuilder builder)
        {
            ThrowIf.Argument.IsNull(operation, "operation");
            ThrowIf.Argument.IsNull(builder, "builder");

            builder
            .Append("CREATE DATABASE ")
            .Append(_sqlGenerationHelper.DelimitIdentifier(operation.Name));

            EndStatement(builder, suppressTransaction: true);
        }