public static bool IsManyToManyTable(TableSchema table) { return (table.Columns.Count == 2 && table.HasPrimaryKey() && table.PrimaryKeyColumns().Count == 2 && table.InReferences.Count == 2); }