Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,18 @@ private void GetIndexes(DbConnection connection, IReadOnlyList<DatabaseTable> ta
Name = reader.GetString(0).Trim(),
IsUnique = reader.GetBoolean(1),
};

bool skipIdx = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use var.

foreach (var column in reader.GetString(3).Split(','))
{
index.Columns.Add(table.Columns.Single(y => y.Name == column.Trim()));
var col = table.Columns.SingleOrDefault(y => y.Name == column.Trim());
if (col == null)
{
skipIdx = true;
break;
}
index.Columns.Add(col);
}
if(skipIdx) continue;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix formatting. Use {/}.


if (reader.GetBoolean(2))
{
Expand Down