示例#1
0
 /// <summary>
 /// Makes this <see cref="Column"/> the primary key of the <see cref="Table"/>.
 /// </summary>
 /// <param name="name">The name of the primary key constraint.</param>
 /// <returns>The column.</returns>
 /// <remarks>Will make the <see cref="Column"/> not nullable.</remarks>
 public Column PrimaryKey(string name)
 {
     Table.AddPrimaryKeyConstraint(name, Name);
     return(this.NotNull());
 }
示例#2
0
 /// <summary>
 /// Makes this <see cref="Column"/> the primary key of the <see cref="Table"/>.
 /// </summary>
 /// <returns>The column.</returns>
 /// <remarks>Will make the <see cref="Column"/> not nullable.</remarks>
 public Column PrimaryKey()
 {
     Table.AddPrimaryKeyConstraint(Name);
     return(this.NotNull());
 }