예제 #1
0
    private static IModificationCommand CreateModificationCommand(
        string name,
        string schema,
        bool sensitiveLoggingEnabled)
    {
        var modificationCommandParameters = new ModificationCommandParameters(
            name, schema, sensitiveLoggingEnabled);

        var modificationCommand = new ModificationCommandFactory().CreateModificationCommand(
            modificationCommandParameters);

        return(modificationCommand);
    }
    private IModificationCommand CreateModificationCommand(
        string name,
        string schema,
        IReadOnlyList <ColumnModificationParameters> columnModifications,
        bool sensitiveLoggingEnabled)
    {
        var modificationCommandParameters = new ModificationCommandParameters(
            name, schema, sensitiveLoggingEnabled);
        var modificationCommand = CreateMutableModificationCommandFactory().CreateModificationCommand(
            modificationCommandParameters);

        foreach (var columnModification in columnModifications)
        {
            modificationCommand.AddColumnModification(columnModification);
        }

        return(modificationCommand);
    }