/// <summary> /// Determines whether this <see cref="Column"/> belongs to the /// primary key of the <see cref="Table"/>. /// </summary> /// <returns> /// <c>true</c> if column belongs to the primary key; otherwise, <c>false</c>. /// </returns> internal bool BelongsToPrimaryKey() { var pk = Table.GetPrimaryKeyConstraint(); return(pk != null && pk.ColumnNames.Contains(Name)); }