sebastienros/yessql

Can we add `Nullable()` extension to IColumnCommand interface to allow us to specify nullable and not nullable columns?

Opened this issue · 0 comments

How can we alter a column and change it from not-nullable to nullable?

Here are the interfaces

    public interface IColumnCommand : ITableCommand
    {
        string ColumnName { get; }

        byte? Scale { get; }

        byte? Precision { get; }

        Type DbType { get; }

        object Default { get; }

        int? Length { get; }

        IColumnCommand WithDefault(object @default);

        IColumnCommand WithLength(int? length);

        IColumnCommand Unlimited();
    }

    public interface IAlterColumnCommand : IColumnCommand
    {
        IAlterColumnCommand WithType(Type dbType, int? length);
        IAlterColumnCommand WithType(Type dbType, byte precision, byte scale);
    }