public SqlRandomTableColumn(SqlRandomTypeInfo typeInfo, SqlRandomColumnOptions options, int?precision, int?scale)
     : this(typeInfo, options)
 {
     StorageSize = null;
     Precision   = precision;
     Scale       = scale;
 }
 public SqlRandomTableColumn(SqlRandomTypeInfo typeInfo, SqlRandomColumnOptions options, int? precision, int? scale)
     : this(typeInfo, options)
 {
     StorageSize = null;
     Precision = precision;
     Scale = scale;
 }
        public SqlRandomTableColumn(SqlRandomTypeInfo typeInfo, SqlRandomColumnOptions options)
        {
            if (typeInfo == null)
            {
                throw new ArgumentNullException(nameof(typeInfo));
            }

            if ((options & SqlRandomColumnOptions.ColumnSet) != 0)
            {
                if ((options & SqlRandomColumnOptions.Sparse) != 0)
                {
                    throw new ArgumentException("Must not be sparse", nameof(options));
                }

                if (typeInfo.Type != SqlDbType.Xml)
                {
                    throw new ArgumentException("columnset column must be an XML column");
                }
            }

            TypeInfo = typeInfo;
            Options  = options;
        }
        public SqlRandomTableColumn(SqlRandomTypeInfo typeInfo, SqlRandomColumnOptions options)
        {
            if (typeInfo == null)
            {
                throw new ArgumentNullException("typeInfo");
            }

            if ((options & SqlRandomColumnOptions.ColumnSet) != 0)
            {
                if ((options & SqlRandomColumnOptions.Sparse) != 0)
                {
                    throw new ArgumentException("options");
                }

                if (typeInfo.Type != SqlDbType.Xml)
                {
                    throw new ArgumentException("columnset column must be an XML column");
                }
            }

            TypeInfo = typeInfo;
            Options = options;
        }