Example #1
0
 /// <summary>
 /// Makes the values of this <see cref="Column"/> unique.
 /// </summary>
 /// <returns>The column.</returns>
 public Column Unique()
 {
     Table.AddUniqueConstraint(Name);
     return(this);
 }
Example #2
0
 /// <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);
 }