public SqlTableColumn Build(out ColumnConstraintInfo constraint) { if (String.IsNullOrEmpty(columnName)) throw new InvalidOperationException("The name for the column is required"); if (columnType == null) throw new InvalidOperationException("The type for the column is required"); constraint = constraintInfo; return new SqlTableColumn(columnName, columnType) { IsNotNull = notNull, DefaultExpression = defaultExpression, IndexType = indexType, IsIdentity = identity }; }
public SqlTableColumn Build(out ColumnConstraintInfo constraint) { if (String.IsNullOrEmpty(columnName)) { throw new InvalidOperationException("The name for the column is required"); } if (columnType == null) { throw new InvalidOperationException("The type for the column is required"); } constraint = constraintInfo; return(new SqlTableColumn(columnName, columnType) { IsNotNull = notNull, DefaultExpression = defaultExpression, IndexType = indexType, IsIdentity = identity }); }
public IColumnBuilder WithConstraint(ColumnConstraintInfo constraint) { constraintInfo = constraint; return(this); }
public IColumnBuilder WithConstraint(ColumnConstraintInfo constraint) { constraintInfo = constraint; return this; }