コード例 #1
0
    public AddColumnIfNotExistsOperation(string table, string name, Func <ColumnBuilder, ColumnModel> columnAction, object anonymousArguments) : base(anonymousArguments)
    {
        ArgumentValidator.CheckForEmptyArgument(table, nameof(table));
        ArgumentValidator.CheckForEmptyArgument(name, nameof(name));
        ArgumentValidator.CheckForNullArgument(columnAction, nameof(columnAction));

        Table = table;
        Name  = name;

        ColumnModel      = columnAction(new ColumnBuilder());
        ColumnModel.Name = name;
    }