__Repro steps__:
1. Create a table that _only_ has two columns (type int) that are FKs to PKs in two other tables.
1. Create a primary composite key from the two columns and have EF Reverse POCO regenerate the model for the DB. In my case, this is a XREF <cross-reference> type of table - so nothing else other than the two columns is needed.
__Result__: no model class generated for the table.
__Modification/workaround__: add another column (not in the composite key) to the table (e.g.: a timestamp column). Regeneration now works fine and the model gets created as expected.
(Also, setting the primary key to only one of the two initial columns seems to solve the issue as well - however that's not really a fix).
__Note__: I've only tested this with Azure V12 SQL DBs.
Comments: The XREF table is being identified as a mapping table. See IdentifyMappingTable() function. This then stops the table being generated and instead uses m.ToTable and m.MapLeftKey, m.MapRightKey. EF now knows that the XREF table is a mapping table. If you do want to have the mapping table generated, then in EF.Reverse.POCO.ttinclude, remove all instances of ``` .Where(t => !t.IsMapping) ```
1. Create a table that _only_ has two columns (type int) that are FKs to PKs in two other tables.
1. Create a primary composite key from the two columns and have EF Reverse POCO regenerate the model for the DB. In my case, this is a XREF <cross-reference> type of table - so nothing else other than the two columns is needed.
__Result__: no model class generated for the table.
__Modification/workaround__: add another column (not in the composite key) to the table (e.g.: a timestamp column). Regeneration now works fine and the model gets created as expected.
(Also, setting the primary key to only one of the two initial columns seems to solve the issue as well - however that's not really a fix).
__Note__: I've only tested this with Azure V12 SQL DBs.
Comments: The XREF table is being identified as a mapping table. See IdentifyMappingTable() function. This then stops the table being generated and instead uses m.ToTable and m.MapLeftKey, m.MapRightKey. EF now knows that the XREF table is a mapping table. If you do want to have the mapping table generated, then in EF.Reverse.POCO.ttinclude, remove all instances of ``` .Where(t => !t.IsMapping) ```