/// <summary> /// Makes the values of this <see cref="Column"/> unique. /// </summary> /// <returns>The column.</returns> public Column Unique() { Table.AddUniqueConstraint(Name); return(this); }
/// <summary> /// Makes the values of this <see cref="Column"/> unique. /// </summary> /// <param name="name">The name of the unique constraint.</param> /// <returns>The column.</returns> public Column Unique(string name) { Table.AddUniqueConstraint(name, Name); return(this); }