Exemplo n.º 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);
        }
Exemplo n.º 2
0
        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);
        }