Exemplo n.º 1
0
        private string GetIndicatorText(Table table, Column column)
        {
            List<string> indicators = new List<string>();

            if (column.InPrimaryKey)
            {
                indicators.Add("PK");
            }

            var fkIndex = table.IndexOfForeignKey(column);
            if (fkIndex >= 0)
            {
                indicators.Add("FK" + (fkIndex + 1).ToString());
            }

            return string.Join(", ", indicators);
        }